Skip to content

When "pr create" fails, please preserve the body and reuse it for next "pr create" invocation #678

Closed

Description

@achimnol

Describe the feature or problem you’d like to solve

When gh pr create fails or cancelled, the body content typed using the editor is lost.
Is there an option to reuse the previous body input?
Sometimes I type a long PR body and just loose it due to a simple mistake, such as not adding any commit to the PR branch yet (e.g., when creating draft PRs).

Proposed solution

If there is no way to preserve the body input, please add one.
e.g., Ask a question to reuse the body on the next invocation if the command has failed or was cancelled.
When PR creation succeeds, then it may delete the cached body input.

Activity

  1. added
    enhancement
    on Mar 19, 2020
  2. vilmibm commented on Oct 7, 2020

    @vilmibm
    Contributor

    Excellent suggestion; since conversation has mostly happened in #906 , marking this one as dupe

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions