Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
ed179554
Commit
ed179554
authored
3 years ago
by
João Paulo Silva de Souza
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
skip pr-custom-review if pull request is in Draft (#1188)
parent
45520d10
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cumulus/.github/workflows/pr-custom-review.yml
+19
-0
19 additions, 0 deletions
cumulus/.github/workflows/pr-custom-review.yml
with
19 additions
and
0 deletions
cumulus/.github/workflows/pr-custom-review.yml
+
19
−
0
View file @
ed179554
...
...
@@ -11,12 +11,31 @@ on:
-
synchronize
-
review_requested
-
review_request_removed
-
ready_for_review
-
converted_to_draft
pull_request_review
:
jobs
:
pr-custom-review
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Skip if pull request is in Draft
# `if: github.event.pull_request.draft == true` should be kept here, at
# the step level, rather than at the job level. The latter is not
# recommended because when the PR is moved from "Draft" to "Ready to
# review" the workflow will immediately be passing (since it was skipped),
# even though it hasn't actually ran, since it takes a few seconds for
# the workflow to start. This is also disclosed in:
# https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/17
# That scenario would open an opportunity for the check to be bypassed:
# 1. Get your PR approved
# 2. Move it to Draft
# 3. Push whatever commits you want
# 4. Move it to "Ready for review"; now the workflow is passing (it was
# skipped) and "Check reviews" is also passing (it won't be updated
# until the workflow is finished)
if
:
github.event.pull_request.draft ==
true
run
:
exit
1
-
name
:
pr-custom-review
uses
:
paritytech/pr-custom-review@v2
with
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment