-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): define Github labels as code with a workflow
- exact same labels as existing ones - allow for future tracked modifications of labels - labels workflow dry-runs on PRs
- Loading branch information
Showing
2 changed files
with
129 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
# Lifecycle labels | ||
- name: "DO NOT MERGE" | ||
color: "#ba1b48" | ||
description: "This PR must not be merged in its current state" | ||
- name: "lifecycle/frozen" | ||
color: "#2476B2" | ||
- name: "lifecycle/stale" | ||
color: "#ededed" | ||
|
||
# General category labels | ||
- name: "bug" | ||
color: "#d73a4a" | ||
description: "Something isn't working" | ||
- name: "documentation" | ||
color: "#0075ca" | ||
description: "Improvements or additions to documentation or examples" | ||
- name: "enhancement" | ||
color: "#a2eeef" | ||
description: "New feature or request" | ||
- name: "needs information" | ||
color: "#d876e3" | ||
description: "Further information is needed" | ||
- name: "needs investigation" | ||
color: "#147F45" | ||
description: "It is currently unclear if there is an issue" | ||
- name: "good first issue" | ||
color: "#7057ff" | ||
description: "Good for newcomers" | ||
- name: "help wanted" | ||
color: "#008672" | ||
description: "Looking for someone to address this" | ||
- name: "ci" | ||
color: "#e99695" | ||
description: "This focuses on changes to the CI process" | ||
- name: "cleanup" | ||
color: "#BFD4F2" | ||
description: "Code quality improvement" | ||
- name: "dependencies" | ||
color: "#0366d6" | ||
description: "This primarily focuses on changing a dependency" | ||
- name": "testing" | ||
color: "220233" | ||
description: "This primarily focuses on testing" | ||
- name: "monitoring" | ||
color: "#97450A" | ||
description: "This primarily focuses on logs, metrics, and/or tracing" | ||
- name: "incident response" | ||
color: "#BE3D15" | ||
- name: "github_actions" | ||
color: "#000000" | ||
description: "Pull requests that update GitHub Actions code" | ||
- name: "go" | ||
color: "#16e2e2" | ||
description: "Pull requests that update Go code" | ||
|
||
# Avalanchego specific labels | ||
- name: "antithesis" | ||
color: "#1d76db" | ||
description: "Related to an issue reported by Antithesis" | ||
- name: "bubble votes" | ||
color: "#3C9CDD" | ||
- name: "consensus" | ||
color: "#4444ff" | ||
description: "This involves consensus" | ||
- name: "continuous staking" | ||
color: "#f9d0c4" | ||
- name: "Durango" | ||
color: "#DAF894" | ||
description: "durango fork" | ||
- name: "gossiping upgrade" | ||
color: "#c2e0c6" | ||
- name: "merkledb" | ||
color: "#0e8a16" | ||
- name: "networking" | ||
color: "88E841" | ||
description: "This involves networking" | ||
- name": "sdk" | ||
color: "72ED25" | ||
description: "This involves SDK tooling or frameworks" | ||
- name: "storage" | ||
color: "3F2A70" | ||
description: "This involves storage primitives" | ||
- name: "Uptime Tracking" | ||
color: "d4c5f9" | ||
- name: "vm" | ||
color: "d1f7a0" | ||
description: "This involves virtual machines" | ||
- name: "warp" | ||
color: "4FC611" | ||
- name: "Warp Signature API" | ||
color: "68A7EA" | ||
|
||
# ACP labels | ||
- name: "acp103" | ||
color: "#AB2C58" | ||
- name: "acp113" | ||
color: "#3359BA" | ||
- name: "acp118" | ||
color: "#DFC715" | ||
- name: "acp125" | ||
color: "#bfdadc" | ||
- name: "acp20" | ||
color: "#DB7D37" | ||
- name: "acp77" | ||
color: "#45CDF2" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: labels | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- .github/labels.yml | ||
- .github/workflows/labels.yml | ||
pull_request: # dry run only | ||
paths: | ||
- .github/labels.yml | ||
- .github/workflows/labels.yml | ||
|
||
jobs: | ||
labeler: | ||
permissions: | ||
contents: read | ||
issues: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: crazy-max/ghaction-github-labeler@v5 | ||
with: | ||
dry-run: ${{ github.event_name == 'pull_request' }} |