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
When "pr create" fails, please preserve the body and reuse it for next "pr create" invocation #678
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.
Reacted by Mislav Marohnić, Dmitrii Sharshakov, Toni Bustos, breadbyte, Luis Guerrero, Philippe Blain and Colin Adams
Activity
vilmibm commentedon Oct 7, 2020
Excellent suggestion; since conversation has mostly happened in #906 , marking this one as dupe