keith / git-pile

Stacked diff support for GitHub workflows
MIT License
148 stars 11 forks source link

Handle PR creation failure cleanup #9

Closed keith closed 2 years ago

keith commented 2 years ago

This is a bit risky since it deletes the remote branch as well in this case, but if you just passed an invalid argument, or don't have network access, without this cleanup you would have to do that yourself before submitting the PR again. It should always be safe because if the branch already existed upstream it would likely fail to be pushed to.

keith commented 2 years ago

maybe i should add some config for opting-in to this