ci: auto-label Solana/Tron crate changes#396
Open
prasanna-anchorage wants to merge 2 commits into
Open
Conversation
actions/labeler config so PRs touching a chain crate get the matching label: - chain:solana -> src/chain_parsers/visualsign-solana/** + src/solana_test_utils/** - chain:tron -> src/chain_parsers/visualsign-tron/** Runs actions/labeler (pinned) on pull_request_target. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds GitHub Actions auto-labeling so PRs that touch Solana/Tron chain crates get the corresponding chain:* label applied automatically, helping downstream workflows and triage stay consistent.
Changes:
- Introduces a
pull_request_target-triggered Labeler workflow usingactions/labeler(pinned by SHA) with minimal required permissions. - Adds
.github/labeler.ymlrules to map Solana/Tron crate paths tochain:solana/chain:tronlabels.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/labeler.yml |
Adds a workflow that runs actions/labeler to apply labels based on changed paths in PRs. |
.github/labeler.yml |
Defines path-based rules for applying chain:solana and chain:tron labels. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+3
to
+5
| on: | ||
| pull_request_target: | ||
|
|
- labeler.yml: add chain:ethereum (visualsign-ethereum/**) and chain:sui (visualsign-sui/**) alongside chain:solana/chain:tron. - workflow: restrict pull_request_target to [opened, synchronize, reopened] so applying a label doesn't self-trigger; add a concurrency group and a timeout-minutes. actions/labeler doesn't check out PR code, so pull_request_target is safe here. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Adds
actions/labelerso PRs touching a chain crate get the matchingchain:*label automatically:.github/labeler.yml—chain:solana→src/chain_parsers/visualsign-solana/**+src/solana_test_utils/**;chain:tron→src/chain_parsers/visualsign-tron/**..github/workflows/labeler.yml—actions/labelerpinned8558fd7…(v5.0.0),on: pull_request_target,permissions: { contents: read, pull-requests: write }.Existing PRs were back-labeled out-of-band (36 Solana, 7 Tron), and the redundant standalone
solana/tronlabels were consolidated intochain:solana/chain:tron.🤖 Generated with Claude Code