Skip to content

Ensure pr create validates all inputs before forking+pushing#618

Merged
vilmibm merged 2 commits into
masterfrom
pr-create-validate
Mar 10, 2020
Merged

Ensure pr create validates all inputs before forking+pushing#618
vilmibm merged 2 commits into
masterfrom
pr-create-validate

Conversation

@mislav

@mislav mislav commented Mar 9, 2020

Copy link
Copy Markdown
Contributor

If there are any errors related to user input, or if the PR create operation has been cancelled via the interactive survey, avoid forking the repo or pushing the branch.

The diff might seem large, but this only swaps the old implemenation around.

Fixes #482, fixes #558, closes #615

mislav added 2 commits March 9, 2020 14:51
This avoids fork or push operation if there were errors processing the
input arguments or if the operation has been cancelled during
interactive survey.
Since we cannot pass the "draft" option as query parameter, this raises
an error instead of proceeding to open the browser and potentially
confuse the user as to why `--draft` wasn't respected.
@vilmibm vilmibm merged commit 80f4cdd into master Mar 10, 2020
@mislav mislav deleted the pr-create-validate branch March 27, 2020 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Draft PR button not automatically selected when previewing on web Cancelled pr create should not push the branch

2 participants