ci: label pull requests with suiflex-bot - #62
Merged
Conversation
Adds the organization's PR triage labeler so pull requests here are marked with who opened them and which conventional-commit types the branch carries. Uses pull_request_target because a fork's pull request runs with a read-only token that cannot apply labels, which is the case this is most needed for. No repository code is checked out or executed.
mulhamna
force-pushed
the
ci/suiflex-bot-triage
branch
from
August 28, 2026 16:04
287a7bb to
a2106ed
Compare
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
suiflex/.github. All logic lives there; this repository only calls it.Changes
.github/workflows/pr-triage.yml, a caller stub. Pull requests getmaintainer,first contribution, orbotfor the author, plus onecommit: <type>label per conventional-commit type on the branch, andneeds: conventional commitwhen a message is onerelease-pleasecannot parse.The trigger is
pull_request_targetrather thanpull_request, and the file carries a comment saying so. A fork's pull request runs with a read-only token that cannot apply labels — which is the case this is most needed for. It is safe because the workflow never checks out or executes the pull request's code; it only passes GitHub-provided event metadata to pinned actions. The same pattern is already used bycla.ymlin this repository.Test plan
scripts/test-pr-triage.mjsinsuiflex/.github— 8 checks passsuiflex/.github#9first; this stub references it at@mainand fails until thensuiflex-botApp and setSUIFLEX_BOT_APP_ID/SUIFLEX_BOT_PRIVATE_KEYas org secretssync-labels.shagainst this repository so the labels existsuiflex-bot