ci(tools): replace action-semantic-pull-request with inline regex#21631
Merged
Conversation
Drops the third-party GitHub Action in favor of a ~10-line bash check. No external action to pin or upgrade, no token permissions needed, and behavior is equivalent: same trigger, same 12-type allowlist, same required-scope enforcement. Also adds `reopened` to trigger types so the check re-runs on reopened PRs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
graphite-app Bot
pushed a commit
to rolldown/rolldown
that referenced
this pull request
May 12, 2026
Since #9188 replaced `pull_request_target` with `pull_request` trigger, `amannn/action-semantic-pull-request` no longer works. To fix that, this PR replaces that with a bash script using grep. refs oxc-project/oxc#21631
IWANABETHATGUY
pushed a commit
to rolldown/rolldown
that referenced
this pull request
May 18, 2026
Since #9188 replaced `pull_request_target` with `pull_request` trigger, `amannn/action-semantic-pull-request` no longer works. To fix that, this PR replaces that with a bash script using grep. refs oxc-project/oxc#21631
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.
Summary
amannn/action-semantic-pull-requestwith a ~10-line inline bash check (grep -Eagainst the title).pull-requests: readtoken permission needed (title comes from the event payload).reopenedto the trigger types so the check re-runs when a PR is reopened.if: github.repository == 'oxc-project/oxc'guard so forks can still run the check locally if they want.The regex is tuned to the scopes oxc actually uses (
[a-z0-9/_-]+, matches e.g.linter/sort-keys,transformer/typescript,oxfmt/lsp). Failure output uses::error::so the reason shows directly on the PR checks UI.