spacedentist / spr

Submit pull requests for individual, amendable, rebaseable commits to GitHub
https://getcord.github.io/spr/
MIT License
378 stars 33 forks source link

Fix aborting pr update by entering empty message on prompt #65

Closed sven-of-cord closed 2 years ago

sven-of-cord commented 2 years ago

When updating an existing PR with spr diff, spr will prompt for a message if one has not been provided using the --message option. The input prompt promises that an empty message will abort the update, but in fact spr just keeps prompting for a message. This commit fixes that.

Test Plan: submit this pull request, update it with spr diff with no message, abort by entering an empty message at the prompt.

sven-of-cord commented 2 years ago

I completed the test plan. It worked.