mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 01:47:55 +00:00
5b0622bc4d
PR prepares CI to the GitHub Merge Queues. All github actions that were running in PR adjusted so they can run in the merge queues. Zombienet jobs will do nothing during PRs but they will run during merge queues. Jobs that will be skipped during PR: - all zombienet jobs - all publish docker jobs Jobs that will be skipped during merge queue: - check-labels - check-prdoc - pr-custom-review - review trigger cc https://github.com/paritytech/ci_cd/issues/862
47 lines
1.7 KiB
YAML
47 lines
1.7 KiB
YAML
name: Assign reviewers
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- main
|
|
types:
|
|
- opened
|
|
- reopened
|
|
- synchronize
|
|
- review_requested
|
|
- review_request_removed
|
|
- ready_for_review
|
|
- converted_to_draft
|
|
pull_request_review:
|
|
merge_group:
|
|
|
|
jobs:
|
|
pr-custom-review:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Skip merge queue
|
|
if: ${{ contains(github.ref, 'gh-readonly-queue') }}
|
|
run: exit 0
|
|
- 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@master
|
|
with:
|
|
checks-reviews-api: http://pcr.parity-prod.parity.io/api/v1/check_reviews
|