Repository navigation
gh pr create breaks on fish #7634
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingneeds-triageneeds to be reviewedneeds to be reviewed
Description
Activity
HI @keturiosakys, thanks fro the report and sorry that you are experiencing issues.
Just a couple of questions to start:
- Did this change between earlier versions and the current version?
- Separately from
gh, when you're usingnviminfishdoes it function correctly when saving and exiting?
I just installed
fishand usednvimto go through these steps successfully:williammartin@William-GitHub-Laptop ~/w/c/test-repo (triage-7634)> ps -p $fish_pid PID TTY TIME CMD 23829 ttys006 0:00.85 fish williammartin@William-GitHub-Laptop ~/w/c/test-repo (triage-7634)> EDITOR=nvim gh pr create ? Where should we push the 'triage-7634' branch? williammartin/test-repo Creating pull request for triage-7634 into main in williammartin/test-repo ? Title triage 7634 ? Body <Received> ? What's next? Cancel Discarding.
I'm also unable to reproduce this. What is the value of
EDITORin the fish shell? I suspect the problem is there.Hey thanks for responding both! To answer the questions:
- Yes this behavior started to occur with a recent upgrade of
ghI believe, although I can't currently pinpoint which exact version - Separately
nvimworks correctly withfish - The value of
EDITORisnvim
Let me try running
nvimwithout a config and see if I can reproduce this error.- Yes this behavior started to occur with a recent upgrade of
Maybe a same/similar issue: #7651.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingneeds-triageneeds to be reviewedneeds to be reviewed

Describe the bug
Using the latest
ghversion:gh version 2.31.0 (2023-06-20)Whenever I run
gh pr createthe interactive workflow breaks after attempting to add description with my default editor -nvim.Here's the shell output:
Note: I wasn't able to reproduce this on
zshsuggesting that this might be related how the CLI interfaces withfishshell that I'm normally usingSteps to reproduce the behavior
fishwithnvimas default editor, type thisgh pr createeto open in editornvimwhen prompted for a description.nvimopens fine and I can add the description correctly, howeve...nvimis closed the interactive workflow breaks withexit status 134Expected vs actual behavior
Expected: worfklow continues allowing me to submit the PR
Actual: workflow breaks with
exit status 134Logs