-
Notifications
You must be signed in to change notification settings - Fork 115
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
feat: allow to skip draft prs unless ready for review or /ok-to-test is added #1593
feat: allow to skip draft prs unless ready for review or /ok-to-test is added #1593
Conversation
Hi @JordanGoasdoue. Thanks for your PR. I'm waiting for a jenkins-x member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. |
57a5795
to
aaa84a6
Compare
7d9bad1
to
b6d440b
Compare
9b13d3f
to
12e8e26
Compare
12e8e26
to
90a337f
Compare
/ok-to-test Thanks for the PR! |
Failed to merge this PR due to:
|
17 similar comments
Failed to merge this PR due to:
|
Failed to merge this PR due to:
|
Failed to merge this PR due to:
|
Failed to merge this PR due to:
|
Failed to merge this PR due to:
|
Failed to merge this PR due to:
|
Failed to merge this PR due to:
|
Failed to merge this PR due to:
|
Failed to merge this PR due to:
|
Failed to merge this PR due to:
|
Failed to merge this PR due to:
|
Failed to merge this PR due to:
|
Failed to merge this PR due to:
|
Failed to merge this PR due to:
|
Failed to merge this PR due to:
|
Failed to merge this PR due to:
|
Failed to merge this PR due to:
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tomhobson The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
related to #1476 && #886
Context:
/ok-to-test
from a trusted memberHow to enable this feature ?
Add
skip_draft_pr
feature on the Trigger Plug-in from you scheduler:skip_draft_pr
in scheduler trigger likeonly_org_members
to allow easy migration of multiple team-app repositories in one time (Would be automatically applied to all repositories using the scheduler with this trigger.skip_draft_pr set to true)How it works ?
trigger pipelines in a Draft PR if
skip_draft_pr
isfalse
depending if trusted or not (by default)trigger pipelines in a Draft PR if
skip_draft_pr
istrue
withok-to-test
labeldoesn't trigger pipelines in a Draft PR if
skip_draft_pr
istrue
but withoutok-to-test
labeltrigger pipelines when you click on
ready for review
if trusted and you don't have the ok-to-test label to avoid triggering the same pipelines than in previous draft mode before clicking the ready for review buttondoesn't trigger pipelines when you click on
convert to draft
even if you have the ok-to-test label to avoid triggering the same pipelines than in previous non draft mode before clicking the convert to draft buttonWhy this feature ?
👇 👇 👇 👇
I have commented each testing scenarios in
pkg/plugins/trigger/pull-request_test.go
with the following PR Actions:prAction: scm.ActionReadyForReview
prAction: scm.ActionConvertedToDraft
to explain the logic behind when we click the "Ready for Review" or "Convert to Draft" button.
I wanted here to avoid useless rerun of pipelines between both these modes.
☝️ ☝️ ☝️ ☝️