ci: Skip owners required-reviews run for comment-only reviews (no-changelog) (#38906)

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Charlie Kolb 2026-09-17 08:40:49 +00:00 committed by GitHub
parent 0c815bbd73
commit 7fb840ec1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,6 +16,8 @@ run-name: "${{ github.event_name == 'workflow_dispatch' && format('CI: Owners Re
# - pull_request_review (submitted/dismissed): re-evaluates when approvals
# change. A privileged event (base repo context, secrets), so it covers
# fork PRs too — and approvals can only change through review events.
# Comment-only reviews are skipped: they cannot change approvals, and
# review bots submit one after every push.
# - merge_group: reports success on the queue head without re-evaluating.
# A PR cannot enter the queue unless this status is green on its head,
# and the queue does not change approvals.
@ -53,14 +55,6 @@ on:
permissions:
contents: read
concurrency:
group: >-
owners-required-reviews-${{ github.event.pull_request.number
|| github.event.merge_group.head_sha
|| inputs.pr_number
|| github.ref }}
cancel-in-progress: true
jobs:
# The queue requires this status on the merge-group head, but there is
# nothing new to evaluate there: entering the queue already required the
@ -105,9 +99,18 @@ jobs:
(github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository) &&
(github.event_name != 'pull_request_review' ||
github.event.pull_request.base.ref == 'master')
(github.event.pull_request.base.ref == 'master' &&
github.event.review.state != 'commented'))
runs-on: ubuntu-latest
timeout-minutes: 5
# Job-level, not workflow-level: a run whose job is skipped must not
# cancel an in-flight evaluation, or the status stays pending.
concurrency:
group: >-
owners-required-reviews-${{ github.event.pull_request.number
|| inputs.pr_number
|| github.ref }}
cancel-in-progress: true
permissions:
contents: read
statuses: write