Skip to content

Temporary store pr create details if the command failed. #1455

Closed

Description

@stephenyu

Describe the feature or problem you’d like to solve

If the pr create command fails, you will lose all the previous details provided.

10:21:05 ~/W/c/web stephenyu-xxxx origin/stephenyu-xxxx ✓
~ gh pr create

Creating pull request for stephenyu-xxxx into master in xxxx/yyyy

? Title [Description]
? Body <Received>
? What's next? Submit
To github.com:xxxx/xxxx.git
 ! [rejected]                  HEAD -> stephenyu-xxxx (non-fast-forward)
error: failed to push some refs to '[email protected]:xxxx/xxxx.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
exit status 1

Proposed solution

It would be nice if, until the pr create is succesful, the details provided are stored temporary so they can be retrieved or perhaps used as subsequent default.

Activity

  1. added
    enhancement
    on Jul 30, 2020
  2. mislav commented on Jul 30, 2020

    @mislav
    Contributor

    Thank you for the suggestion! Duplicate of #906

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