Check PR status before marking deployable/accept-pull #107
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
If a repository has status checks enabled, ensure that the all the checks have passed before:
deployable
QA Plan
deployable
Attempt to mark a PR as deployable if it hasn't passed its status checks. This should fail.
![2__arvindmenon_arvind-menon-mbp____sportngin_auto_mobile_test__zsh__and_testing_deployability_by_amenon_ pull_request__10 _sportngin_auto_mobile_test](https://cloud.githubusercontent.com/assets/1328587/20226638/79c66d04-a80e-11e6-8587-e3c2830b483b.jpg)
After the status checks have passed, this should succeed and mark the PR as deployable
![2__arvindmenon_arvind-menon-mbp____sportngin_auto_mobile_test__zsh__and_testing_deployability_by_amenon_ pull_request__10 _sportngin_auto_mobile_test](https://cloud.githubusercontent.com/assets/1328587/20226679/a4b24524-a80e-11e6-932e-033174498c93.jpg)
accept-pull
Attempt to accept a PR as deployable if it hasn't passed its status checks. This should fail.
![2__arvindmenon_arvind-menon-mbp____sportngin_auto_mobile_test__zsh__and_testing_deployability_by_amenon_ pull_request__10 _sportngin_auto_mobile_test](https://cloud.githubusercontent.com/assets/1328587/20228189/d6b5c15c-a815-11e6-9b57-0cbc70b04b5d.jpg)
Force accept a PR even if the status checks haven't passed
![2__arvindmenon_arvind-menon-mbp____sportngin_auto_mobile_test__zsh__and_testing_deployability_by_amenon_ pull_request__10 _sportngin_auto_mobile_test](https://cloud.githubusercontent.com/assets/1328587/20228204/eed71b14-a815-11e6-8e6b-b7cc919377ef.jpg)
accept-pull
should succeed if the PR status checks have passed