Repository navigation
ci: request daily Copilot reviews using the Max subscriber account - #822
Open
chaitanyagiri wants to merge 1 commit into
Open
chaitanyagiri wants to merge 1 commit into
chaitanyagiri wants to merge 1 commit into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
🚫 This PR is missing its before/after evidenceEvery pull request here has to show its work. Screenshots or a short screen recording, before the change and after it.
How to fix it: edit the description, keep the A bug fix with no visible surface still needs it: show the failing behaviour, then the same steps passing. A terminal recording is fine. Genuinely nothing to show — a CI tweak, a typo, a dependency bump? A maintainer can apply the |
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What & why
Request Copilot reviews of open human-authored, non-draft pull requests once a day at 09:00 UTC, using a personal access token belonging to the account with Copilot Max. Copilot posts its review findings and overview directly on each PR asynchronously.
The workflow skips unchanged, already-reviewed heads and pending Copilot requests, supports manual dispatch, paginates API results, and surfaces failures without abandoning the remaining batch. It never checks out or executes contributor code. Bot-authored PRs are excluded because their reviews can be billed to the organization.
This is a CI-only change with no UI; requesting the maintainer's
no-visual-changewaiver.Activation required: merge this PR and add the
COPILOT_REVIEW_TOKENActions repository secret, using a fine-grained PAT from the account with Copilot Max, scoped to this repository with Pull requests: Read and write permission. Organization approval and policies may apply. This session cannot inspect repository secrets: the installation returned HTTP 403 for secret listing. No review runs have been triggered.Usage defaults to the requesting account but can be overridden by organization billing settings. The first run includes the entire eligible open backlog, with no review cap. GitHub schedules may be delayed. Each review consumes credits and Actions usage may apply. Disable overlapping built-in automatic review rules if reviews should run only in this batch.
Type of change
Evidence
Before
No daily Copilot review workflow existed in
.github/workflows; reviews required a separate manual request or automatic-review ruleset.After
.github/workflows/daily-copilot-review.ymldefines the daily schedule and manual trigger. The workflow body is exercised directly by regression tests:Tests cover the schedule and credential wiring, new and changed PRs, drafts and bot exclusions, completed/pending duplicate suppression, Copilot login variants, error reporting with batch continuation, and bot credential rejection.
How I tested it
node --test test/daily-copilot-review.test.cjs- 7 passed.go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.7 .github/workflows/daily-copilot-review.yml- passed.git diff --cached --check- passed before committing.Credit (optional)
Discord:
X:
Checklist
no-visual-change.npm run typecheckpasses. Not run; no application changes.npm run test:focusedpasses. Targeted workflow regression tests passed.npm run buildsucceeds. Not run; no application changes.