Skip to content

drift-check.yml: the refresh PR's own run waits for approval - #27

Merged
mmcky merged 1 commit into
mainfrom
drift-check/approval-comment
Nov 2, 2026
Merged

mmcky merged 1 commit into
mainfrom
drift-check/approval-comment

Conversation

@mmcky

@mmcky mmcky commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

The header comment said a pull request opened with GITHUB_TOKEN does not trigger this workflow's own pull_request run. It does start the run, but the repository's approval policy (all external contributors) holds it at action_required until a maintainer approves it. #26 waited that way from 2026-10-15 until it was approved and merged on 2026-11-01.

The comment now says so, and says to approve the run when reviewing the refresh PR. Comment only; no behaviour changes.

The same fact is recorded in the access record in ARCHITECTURE.md (QuantEcon/project-monorepo#114). Whether a pull request opened with the App's token is held the same way is tested in step 8 of QuantEcon/project-monorepo#27.

🤖 Generated with Claude Code

The header comment said a pull request opened with GITHUB_TOKEN does not
trigger this workflow's pull_request run. It does start the run, but the
repository's approval policy (all external contributors) holds it at
action_required until a maintainer approves it, as #26 showed from
2026-10-15 to 2026-11-01. The comment now says so, and says to approve
the run when reviewing the refresh PR. See QuantEcon/project-monorepo#27
step 8 for the App-token test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 2, 2026 00:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is a documentation-only correction to the workflow header comment with no behavioral impact and no objective issues identified.

No open issues 🎉

What changed in this PR

This PR updates the PERMISSIONS note in the header comment of .github/workflows/drift-check.yml. The previous comment incorrectly stated that a PR opened with the default GITHUB_TOKEN does not trigger the workflow's own pull_request run. The new comment clarifies that the run does start, but the repository's approval policy (all external contributors) holds it at action_required until a maintainer approves it, and instructs reviewers to approve the run when reviewing the refresh PR. This is documentation-only with no behavioral change, keeping the operational guidance accurate for maintainers handling the nightly drift-check refresh flow.

Changes:

  • Corrects the factual claim about whether a GITHUB_TOKEN-opened PR triggers the workflow's own pull_request run.
  • Adds guidance to approve the held run when reviewing the refresh PR.
  • Preserves the existing note that pushes to drift/refresh work under branch protection.
File Description
.github/​workflows/​drift-check.yml Rewrites the PERMISSIONS header comment to accurately describe the approval-policy hold on the refresh PR's own run and tell reviewers to approve it.

No issues found — the change is accurate, consistent, and complete.

Review effort: Balanced

@mmcky
mmcky merged commit 04ec619 into main Nov 2, 2026
3 checks passed
@mmcky
mmcky deleted the drift-check/approval-comment branch November 2, 2026 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants