Skip to content

feat(pr-classifiers): Add an action that runs the PR classifiers - #188

Open
stephanie-anderson wants to merge 3 commits into
mainfrom
feat/pr-classifiers-action
Open

stephanie-anderson wants to merge 3 commits into
mainfrom
feat/pr-classifiers-action

Conversation

@stephanie-anderson

@stephanie-anderson stephanie-anderson commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Add a pr-classifiers composite action that runs the internal getsentry/classifiers action on a pull request and puts the result on it as a label.

sentry-java, sentry-go, sentry-elixir and sentry-dotnet each carry a copy of the same workflow today: get an app token for the internal repository, check it out at a pinned commit, run its action, upload the result. This wraps those four steps, so a caller keeps the trigger, the permissions, the concurrency group and one step. The pinned classifiers commit moves here as the default of classifiers-ref, where it is bumped once instead of in a ref: line per repository.

It is a composite action rather than a reusable workflow to match what this repository moved to in v3. The cost is that the trigger, permissions and concurrency block stay in each caller, because a composite action cannot set them. The README gives the block to copy and explains why the concurrency expression must not be simplified.

The classifier reads the repository's fact sheet from .github/classifiers.toml at the pull request's base commit (getsentry/classifiers#12), so a repository needs that file on its default branch before it switches to this action.

Not verified yet

This has not run on GitHub. The step I would check first is uses: ./.classifiers/actions/pr inside the composite action: it relies on a local path resolving against the workspace, where the previous step put the checkout. It needs one run on a test pull request in a repository that has the app credentials and the gateway key, which the workflow tests here cannot have.

🤖 Generated with Claude Code

stephanie-anderson and others added 2 commits November 24, 2026 15:23
Every repository that classifies its pull requests copied the same four
steps: get a token for the internal getsentry/classifiers repository, check
it out at a pinned commit, run its action and upload the result. Wrap them
in one composite action so a repository only keeps the trigger, the
permissions, the concurrency group and one step.

The pinned classifiers commit now lives here, where a dependency updater
can see it, instead of in a ref: line in each caller.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.
📖 ✅ Custom dangerfile check: PR has a description
📖 ✅ Custom dangerfile check: PR title length is reasonable
📖 📊 Custom check: This PR changes 4 file(s)

Generated by 🚫 dangerJS against f675ce0

Which classifiers run is decided in getsentry/classifiers. Listing them here
would need an update with every new one.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@stephanie-anderson
stephanie-anderson marked this pull request as ready for review November 24, 2026 17:57
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.

1 participant