Skip to content

Regression: recovery file info no longer shown upon create failure #10889

Open

Description

@unitof

Describe the bug

pr/issue create 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

  1. Run gh pr create --draft on a repo which does not allow draft PRs
  2. Enter any data into creation flow
  3. 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)
▶ 

Activity

  1. added
    bug
    on Apr 28, 2025
  2. added
    needs-triage
    on Apr 28, 2025
  3. added
    priority-2
    on Apr 28, 2025
  4. BagToad commented on Apr 28, 2025

    @BagToad
    Member

    Thanks for the report @unitof ✨ I don't think this is intentional - looking into it...

  5. upinjarjit655-lang commented on Aug 28, 2025

    @upinjarjit655-lang
  6. andyfeller commented on Oct 7, 2025

    @andyfeller
    Contributor

    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 for af/6892/stderr-usage into main in ...
    
    ? Title (required) Use stderr to display non-TTY usage message
    ? Choose a template pull_request_template.md
    ? Body <Received>
    ? What's next? Submit
    Working...
    error connecting to api.github.com
    check 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 🤔

  7. removed
    needs-triage
    on Mar 16, 2026
  8. added
    pitch
    on May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpitchpriority-2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions