glab icon indicating copy to clipboard operation
glab copied to clipboard

Friendlier recovery when issue/mr create fails

Open profclems opened this issue 5 years ago • 5 comments

Describe the feature or problem you'd like to solve When glab mr create fails or cancelled, the body content typed using the editor is lost.

Sometimes the user may type a long MR description and just lose it due to a simple mistake, such as not adding any commit to the MR branch yet (e.g., when creating draft MRs).

Propose a Solution To me, the best user experience would be if the person can just resume where they left off so whenever someone authors an MR or issue, we save their title & body in a file scoped to that repository.

If the create operation succeeded, we delete the file. Otherwise, the save file stays on disk and is used to pre-fill the next issue/mr create invocation, which is most likely a retry after a server or validation failure.

Or instead of prefilling, we provide --recover flag to continue from the last session

Additional context

profclems avatar Dec 31 '20 12:12 profclems

gh provides a --recover I think that is the best solution.

maxice8 avatar Dec 31 '20 12:12 maxice8

@maxice8 I don't see how this is related to #520

profclems avatar Jan 06 '21 14:01 profclems

It isn't, I used the wrong issue number, sorry.

maxice8 avatar Jan 06 '21 14:01 maxice8

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

clemsbot avatar Mar 10 '21 02:03 clemsbot

This issue has been automatically marked as stale because it has not had recent activity. We haven't had the time to address it yet, but we want to keep it open. This message is just a reminder for us to help triage issues.

clemsbot avatar Nov 04 '21 02:11 clemsbot