Skip to content

Commit

Permalink
chore(ci): define Github labels as code with a workflow (#3629)
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 authored Jan 8, 2025
1 parent 18b8320 commit aef7b9e
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 0 deletions.
105 changes: 105 additions & 0 deletions .github/labels.yml
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"
24 changes: 24 additions & 0 deletions .github/workflows/labels.yml
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' }}

0 comments on commit aef7b9e

Please sign in to comment.