Skip to content

Commit

Permalink
Create sync-labels workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
NotRyken committed May 21, 2024
1 parent 6f312cf commit 9a24e7a
Show file tree
Hide file tree
Showing 3 changed files with 140 additions and 143 deletions.
143 changes: 0 additions & 143 deletions .github/labels.json

This file was deleted.

115 changes: 115 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
- "name": "E/duplicate"
"color": "BFD4F2"
"description": "Closed: Same as another"
"aliases": []

- "name": "E/external"
"color": "BFD4F2"
"description": "Closed: External issue"
"aliases": []

- "name": "E/invalid"
"color": "BFD4F2"
"description": "Closed: Not an issue"
"aliases": []

- "name": "E/no-action"
"color": "BFD4F2"
"description": "Closed: Not actionable or inadequate information"
"aliases": []

- "name": "E/wontfix"
"color": "BFD4F2"
"description": "Closed: Will not be worked on"
"aliases": []



- "name": "P/high"
"color": "B60205"
"description": "Priority: High, for immediate attention"
"aliases": []

- "name": "P/low"
"color": "006B75"
"description": "Priority: Low, not time-sensitive"
"aliases": []

- "name": "P/medium"
"color": "36210B"
"description": "Priority: Medium, time-sensitive but not urgent"
"aliases": []



- "name": "S/accepted"
"color": "0E8A16"
"description": "Status: Request accepted"
"aliases": []

- "name": "S/available"
"color": "006B75"
"description": "Status: Available for community contribution"
"aliases": []

- "name": "S/blocked"
"color": "97988B"
"description": "Status: Blocked by another event"
"aliases": []

- "name": "S/fixed"
"color": "0E8A16"
"description": "Status: Fixed"
"aliases": []

- "name": "S/info-needed"
"color": "FBCA04"
"description": "Status: Awaiting further information"
"aliases": []

- "name": "S/in-progress"
"color": "0052CC"
"description": "Status: Assigned and in progress"
"aliases": []

- "name": "S/needs-triage"
"color": "36210B"
"description": "Status: Needs triage"
"aliases": []



- "name": "T/addition"
"color": "006B75"
"description": "Type: New feature"
"aliases": []

- "name": "T/bug"
"color": "D93F0B"
"description": "Type: Bug"
"aliases": []

- "name": "T/compat"
"color": "36210B"
"description": "Type: Compatibility"
"aliases": []

- "name": "T/enhancement"
"color": "0052CC"
"description": "Type: Enhancement or optimization"
"aliases": []

- "name": "T/fix"
"color": "0E8A16"
"description": "Type: Issue fix"
"aliases": []

- "name": "T/port"
"color": "5319E7"
"description": "Type: Upgrade or downgrade game version"
"aliases": []

- "name": "T/security"
"color": "B60205"
"description": "Type: Security issue"
"aliases": []
25 changes: 25 additions & 0 deletions .github/workflows/sync-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: sync-labels

on:
push:
paths:
- ".github/workflows/sync-labels.yml"
- ".github/labels.yml"
workflow_dispatch:

jobs:
sync:
runs-on: ubuntu-latest
env:
LABEL_SYNC_TOKEN: ${{ secrets.LABEL_SYNC_TOKEN }}
steps:
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: actions/checkout@v4
with:
sparse-checkout: |
.github/labels.yml
sparse-checkout-cone-mode: false
- run: npx github-label-sync -a '${{ secrets.LABEL_SYNC_TOKEN }}' -l '.github/labels.yml' ${{ github.repository }}
if: env.LABEL_SYNC_TOKEN != null

0 comments on commit 9a24e7a

Please sign in to comment.