Repository navigation
ci: autorun approved PRs #7491
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
Open
alex-ameen
wants to merge
27
commits into
main
Choose a base branch
from
aameen/ikl-570-autorun-approved-prs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+630
β0
Open
ci: autorun approved PRs #7491
Changes from 24 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
447e73b
ci: IKL 570: autorun approved PRs
c6ecc0a
ci: cancel stale runs on synchronize before re-triggering
facdf21
Update .github/workflows/pr-auto-ci.yml
alex-ameen 78b6a27
ci: restrict scope detection to trusted commenters (OWNER/MEMBER/COLLβ¦
5667932
ci: use repo-role + ci-users team auth for scope detection (match ci-β¦
84c8bfc
ci: clear stale scope statuses on validation/chunking failure before β¦
33f8459
ci: pass head.ref through env var, remove unused PR_NUMBER in cancel β¦
dda9fc6
ci: fail step on stale-scope clearing errors, gate label step on publβ¦
137ad32
ci: aggregate scoped runs per commit, clear stale scopes on empty, fiβ¦
9ea97f6
ci: use workflow runs API for stale run cancellation (exposes head_reβ¦
0aa7adc
Update .github/workflows/pr-auto-ci.yml
alex-ameen e9a896a
ci: add concurrency group, base-ref guard for reviews, URL-encode braβ¦
f9fb3fd
ci: use GITHUB_TOKEN for author auth, drop FLASHINFER_GITHUB_TOKEN reβ¦
08b5be7
ci: require explicit scope for auto-trigger, never run full suite
2858a5b
ci: guard auto-ci to only run on canonical repo
6f6f6d7
ci: remove author org-check gate, rely on scoped-run auth instead
d6ab50a
ci: detect real pr-test runs via the Setup job, not the run event
b35cbf9
ci: check bot token inside the label step, not in its if:
55964bf
ci: report auto-ci as skipped, not success, on unapproved PRs
733f2e5
ci: rename approval job to "approval gate"
5c0a48d
ci: wait 30s before checking for an existing pr-test run
420cf62
ci: shorten pre-check sleep to 15s
d07a9e7
ci: don't auto-retrigger CI on a SHA whose real run already failed
f863d93
ci: run auto-ci in the base repo context so it works for fork PRs
811e2d2
Update .github/workflows/pr-auto-ci-review.yml
alex-ameen cbbe6f1
ci: fix pr-auto-ci-review.yml relay step truncated by YAML comment
6754464
ci: treat bare @flashinfer-bot run as clearing auto-ci scope; never aβ¦
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # Unprivileged relay for pr-auto-ci.yml on PR approvals. | ||
| # | ||
| # `pull_request_review` events from fork PRs get a read-only GITHUB_TOKEN and | ||
| # no secrets, and there is no `pull_request_review_target`. This workflow | ||
| # therefore does no work itself: it exists only so its completion fires | ||
| # pr-auto-ci.yml through `workflow_run`, which runs from the default branch | ||
| # with a write token and secrets. | ||
| # | ||
| # The job is skipped (so the run concludes "skipped" and pr-auto-ci.yml | ||
| # ignores it) unless the review is an approval on a PR targeting main. | ||
| # pr-auto-ci.yml re-verifies everything through the API; it trusts nothing | ||
| # from this run beyond "some review happened on this head SHA". | ||
|
|
||
| name: Auto CI review relay | ||
|
|
||
| on: | ||
| pull_request_review: | ||
| types: [submitted] | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| relay: | ||
| name: approval relay | ||
| if: >- | ||
| github.event.review.state == 'approved' | ||
| && github.event.pull_request.base.ref == 'main' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - run: echo "Approval on PR #${{ github.event.pull_request.number }}; pr-auto-ci.yml will pick this up via workflow_run" | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.