Skip to content

ci: auto-label Solana/Tron crate changes#396

Open
prasanna-anchorage wants to merge 2 commits into
mainfrom
ci/chain-autolabel
Open

ci: auto-label Solana/Tron crate changes#396
prasanna-anchorage wants to merge 2 commits into
mainfrom
ci/chain-autolabel

Conversation

@prasanna-anchorage

Copy link
Copy Markdown
Contributor

Adds actions/labeler so PRs touching a chain crate get the matching chain:* label automatically:

  • .github/labeler.ymlchain:solanasrc/chain_parsers/visualsign-solana/** + src/solana_test_utils/**; chain:tronsrc/chain_parsers/visualsign-tron/**.
  • .github/workflows/labeler.ymlactions/labeler pinned 8558fd7… (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/tron labels were consolidated into chain:solana/chain:tron.

🤖 Generated with Claude Code

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>
Copilot AI review requested due to automatic review settings June 24, 2026 20:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 using actions/labeler (pinned by SHA) with minimal required permissions.
  • Adds .github/labeler.yml rules to map Solana/Tron crate paths to chain:solana / chain:tron labels.

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>
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.

2 participants