Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub pull request creation can fail for various reasons [1], and should return a 4XX code if it does. Previously the response code was ignored (the default behaviour of curl), so PR creation could silently fail. This change adds the curl --fail argument, as is used for Gitlab. [1] https://docs.github.com/en/free-pro-team@latest/rest/pulls/pulls?apiVersion=2022-11-28#create-a-pull-request--status-codes
- Loading branch information