You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regression: recovery file info no longer shown upon create failure #10889
pr/issuecreate commands no longer show recovery information upon GraphQL failure
Affected version
gh version 2.71.1 (2025-04-24)
https://github.com/cli/cli/releases/tag/v2.71.1
Steps to reproduce the behavior
Run gh pr create --draft on a repo which does not allow draft PRs
Enter any data into creation flow
Command will fail with pull request create failed: GraphQL: Draft pull requests are not supported in this repository. (createPullRequest), but no recovery information will be shown
Expected vs actual behavior
Previously, when a gh pr create or gh issue create command failed with a GraphQL error, the entered metadata, title, and body would be saved in a recovery file and helpful recovery instructions shown after the error message, per #906 and #2408.
Sometime in the past few months this seems to have broken or been removed.
Is this removal intentional?
Is entered information still recoverable?
Logs
▶ gh pr create --draft
Warning: 1 uncommitted change
Creating draft pull request for transitions into main in [redacted]/[redacted]
? Title (required) Diptych zoom transition
? Body <Received>
? What's next? Submit as draft
pull request create failed: GraphQL: Draft pull requests are not supported in this repository. (createPullRequest)
▶
Reacted by Cédric Bamps, Josh Pencheon, Stephen Eisenhauer and Kynan Ware
Additionally, gh pr create doesn't seem to either create or notify the user of a recovery file if there network errors are raised in the PR submission. 🤔
$ gh pr create
Warning: 1 uncommitted change
Working...
Creating pull request foraf/6892/stderr-usage into mainin ...
? Title (required) Use stderr to display non-TTY usage message
? Choose a template pull_request_template.md
? Body <Received>? What's next? SubmitWorking...error connecting to api.github.comcheck your internet connection or https://githubstatus.com
In this case, I think the corporate firewall blocked something in my case but coincidentally didn't block GraphQL call needed for retrieving the PR templates as the prompt appeared correctly 🤔
Activity
BagToad commentedon Apr 28, 2025
Thanks for the report @unitof ✨ I don't think this is intentional - looking into it...
upinjarjit655-lang commentedon Aug 28, 2025
andyfeller commentedon Oct 7, 2025
Additionally,
gh pr createdoesn't seem to either create or notify the user of a recovery file if there network errors are raised in the PR submission. 🤔In this case, I think the corporate firewall blocked something in my case but coincidentally didn't block GraphQL call needed for retrieving the PR templates as the prompt appeared correctly 🤔