Skip to content

Commit

Permalink
add github labels auto-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
TroyKomodo committed Jan 3, 2025
1 parent 73a31a9 commit 738a303
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
- name: "B-brawl-failed"
color: "B60205"
- name: "B-brawl-merged"
color: "5319E7"
- name: "B-brawl-merging"
color: "006B75"
- name: "B-brawl-queued"
color: "C2E0C6"
- name: "B-brawl-try"
color: "FBCA04"
- name: "B-brawl-try-failed"
color: "B60205"
- name: "bug"
color: "d73a4a"
- name: "documentation"
color: "0075ca"
- name: "duplicate"
color: "cfd3d7"
- name: "enhancement"
color: "a2eeef"
- name: "good first issue"
color: "7057ff"
- name: "help wanted"
color: "008672"
- name: "invalid"
color: "e4e669"
- name: "question"
color: "d876e3"
- name: "wontfix"
color: "ffffff"
32 changes: 32 additions & 0 deletions .github/workflows/sync-labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Sync Labels

on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
push:
branches:
- main
paths:
- ".github/labels.yaml"
pull_request:
branches:
- main

jobs:
synclabels:
name: Sync Labels
runs-on: ubuntu-24.04

permissions: write-all

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Sync labels
uses: crazy-max/ghaction-github-labeler@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
dry-run: ${{ github.event_name == 'pull_request' }}
yaml-file: .github/labels.yaml

0 comments on commit 738a303

Please sign in to comment.