Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check PR status before marking deployable/accept-pull #107

Merged
merged 6 commits into from
Nov 17, 2016

Conversation

amenon
Copy link
Contributor

@amenon amenon commented Nov 11, 2016

Description

If a repository has status checks enabled, ensure that the all the checks have passed before:

  • a pull request can be marked deployable
  • a pull request can be accepted

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

  • 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

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

  • 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

  • accept-pull should succeed if the PR status checks have passed
    2__arvindmenon_arvind-menon-mbp____sportngin_auto_mobile_test__zsh__and_testing_deployability_by_amenon_ pull_request__10 _sportngin_auto_mobile_test

@amenon amenon changed the title Check PR status before marking deployable Check PR status before marking deployable/accept-pull Nov 11, 2016
@bbergstrom
Copy link
Contributor

We should add the ignore flag to the deployable command as well.

@amenon
Copy link
Contributor Author

amenon commented Nov 11, 2016

Added the --ignore-status-checks switch to the deployable command

2__arvindmenon_arvind-menon-mbp____sportngin_auto_mobile_test__zsh__and_testing_deployability_by_amenon_ pull_request__10 _sportngin_auto_mobile_test

@chrisarcand
Copy link
Collaborator

chrisarcand commented Nov 13, 2016

Intuitively this could be called --force ¯_(ツ)_/¯

@bbergstrom bbergstrom merged commit 81003ea into master Nov 17, 2016
bbergstrom pushed a commit that referenced this pull request Nov 17, 2016
@emmahsax emmahsax deleted the check_pr_statuses branch July 14, 2020 07:58
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.

None yet

3 participants