Skip to content

ci: run the PR title check on pull_request - #187

Merged
kylebarron merged 2 commits into
mainfrom
ci/pr-title-pull-request
Nov 12, 2026
Merged

kylebarron merged 2 commits into
mainfrom
ci/pr-title-pull-request

Conversation

@lhoupert

@lhoupert lhoupert commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

GitHub blocks pull_request_target by default in public repos from 2 December 2026 (brownout Monday 16 November, 16:00-18:00 UTC). validate-pr-title is required here and a blocked run reports no check, so no PR could merge.

This runs the check on pull_request instead:

  • Same job id, so the required check name is unchanged.
  • The job no longer uses the release-bot key, and its token is limited to pull-requests: write, which also covers creating a type label that doesn't exist yet (perf, revert).
  • Same-repo PRs keep their type label, as in ci: run the PR title check on pull_request deck.gl-raster#872. Fork PRs are still validated but no longer labelled, since their token is read-only.
  • actions.lock is regenerated to match.

How this was made

Claude Code drafted the change. @lhoupert found the problem while surveying pull_request_target workflows across Development Seed repos, chose to follow developmentseed/deck.gl-raster#872, and ran gh actions-lock --verify locally. The workflow has not run on GitHub before this PR.

Later, @kylebarron's Claude Code dropped issues: write (1eb8dde), since creating and adding labels accepts either permission.

— Claude Code, on behalf of @lhoupert

GitHub blocks pull_request_target in public repositories by default from 2 December 2026, which would leave the required validate-pr-title check pending. The title comes from the event and the label is added with the workflow token, so the app token step is dropped.
@github-actions github-actions Bot added the ci label Nov 12, 2026
Creating and adding labels accepts either the Issues or the Pull requests
write permission, so pull-requests: write alone is enough.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kylebarron

Copy link
Copy Markdown
Member

Note

This comment was written by Claude (Claude Code), not by @kylebarron.

Pushed 1eb8dde, which drops issues: write. GitHub's REST docs for Create a label and Add labels to an issue accept either the "Issues" or the "Pull requests" write permission, so pull-requests: write covers both. developmentseed/deck.gl-raster#881 labeled a PR with a token limited to pull-requests: write. I also updated the matching bullet in the description.

🤖 Written by Claude Code

@kylebarron kylebarron left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks

@kylebarron
kylebarron merged commit 6909ac3 into main Nov 12, 2026
10 checks passed
@kylebarron
kylebarron deleted the ci/pr-title-pull-request branch November 12, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants