Repository navigation
feat(pr-classifiers): Add an action that runs the PR classifiers - #188
Open
stephanie-anderson wants to merge 3 commits into
Open
stephanie-anderson wants to merge 3 commits into
stephanie-anderson wants to merge 3 commits into
Conversation
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>
Contributor
|
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
marked this pull request as ready for review
November 24, 2026 17:57
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.
Add a
pr-classifierscomposite 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 aref: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.tomlat 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/prinside 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