Skip to content

ci(pr): label PRs from forks via workflow_run - #26711

Merged
graphite-app[bot] merged 1 commit into
mainfrom
ci-label-fork-prs
Sep 18, 2026
Merged

graphite-app[bot] merged 1 commit into
mainfrom
ci-label-fork-prs

Conversation

@Dunqing

@Dunqing Dunqing commented Sep 16, 2026

Copy link
Copy Markdown
Member

The Label PR workflow runs on pull_request, where the token is read-only for PRs from forks, so external PRs need area labels applied by hand (#26666 for example). pull_request_target was banned in #21566.

Trigger the labeler from workflow_run on Check PR instead. The workflow file comes from the default branch, no PR code is checked out, and actions/labeler reads labeler.yml and the changed files through the API. The PR number is looked up by head branch and sha because workflow_run.pull_requests is empty for forks.

@camc314

camc314 commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

@codex review

@camc314

camc314 commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

@codex security review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-16T08:34:20.775870Z 235f3ee Manual request
🔒 Security Review ✅ Completed 2026-09-16T06:26:27.330094Z 559a319 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 559a319602

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@camc314 camc314 self-assigned this Sep 16, 2026
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Sep 16, 2026

camc314 commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Merge activity

  • Sep 16, 6:27 AM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Sep 16, 6:27 AM UTC: camc314 added this pull request to the Graphite merge queue.
  • Sep 16, 6:33 AM UTC: The Graphite merge queue couldn't merge this PR because it failed for an unknown reason (All comments in this PR must be resolved before merging. Once you've resolved all open comment threads, you can retry your merge.).
  • Sep 18, 2:42 AM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Sep 18, 2:42 AM UTC: Dunqing added this pull request to the Graphite merge queue.
  • Sep 18, 2:47 AM UTC: Merged by the Graphite merge queue.

graphite-app Bot pushed a commit that referenced this pull request Sep 16, 2026
The Label PR workflow runs on `pull_request`, where the token is read-only for PRs from forks, so external PRs need area labels applied by hand (#26666 for example). `pull_request_target` was banned in #21566.

Trigger the labeler from `workflow_run` on `Check PR` instead. The workflow file comes from the default branch, no PR code is checked out, and `actions/labeler` reads `labeler.yml` and the changed files through the API. The PR number is looked up by head branch and sha because `workflow_run.pull_requests` is empty for forks.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 559a319602

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/pr-label.yml Resolved
Comment thread .github/workflows/pr-label.yml Resolved
@graphite-app graphite-app Bot removed the 0-merge Merge with Graphite Merge Queue label Sep 16, 2026
@Dunqing

Dunqing commented Sep 16, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 235f3ee156

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/pr-label.yml Resolved
@Dunqing Dunqing added the 0-merge Merge with Graphite Merge Queue label Sep 18, 2026
The Label PR workflow runs on `pull_request`, where the token is read-only for PRs from forks, so external PRs need area labels applied by hand (#26666 for example). `pull_request_target` was banned in #21566.

Trigger the labeler from `workflow_run` on `Check PR` instead. The workflow file comes from the default branch, no PR code is checked out, and `actions/labeler` reads `labeler.yml` and the changed files through the API. The PR number is looked up by head branch and sha because `workflow_run.pull_requests` is empty for forks.
@graphite-app
graphite-app Bot merged commit b01bcd9 into main Sep 18, 2026
30 checks passed
@graphite-app graphite-app Bot removed the 0-merge Merge with Graphite Merge Queue label Sep 18, 2026
@graphite-app
graphite-app Bot deleted the ci-label-fork-prs branch September 18, 2026 02:47
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