Skip to content

Commit

Permalink
Add labels-as-code config stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ajhalili2006 authored Jul 3, 2024
1 parent 300a1e2 commit 33d943e
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This YAML is where we manage GitHub labels as code

## The basics
- name: bug
description: Something isn't working
color: d73a4a
- name: documentation
description: Improvements or additions to the documentation, especially on the wiki and contributing guidelines.
- name: duplicate
description: This issue or patch/merge request already exists
color: cfd3d7
- name: enchancement
description: New feature or request
color: a2eeef
- name: good first issue
description: Good for first-time contributors
color: 7057ff
- name: help wanted
description: Extra attention and assistance required
color: 008672
- name: invalid
description: This doesn't seem right
color: e4e669
- name: missing info
from_name: question
description: Further information is requested
color: d876e3
- name: wontfix
description: THis will not be worked on
color: ffffff

## GitHub issue form identifiers
- name: 'gh-issue-form: default'
description: "[FOR TRIAGEOPS ONLY - DO NOT REMOVE] Issues made using the default form"
color: 8D7471

## TODO: Import labels from sourcehut todo and JetBrains YouTrack/Space Cloud counterparts.
31 changes: 31 additions & 0 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: TriageOps - Labels Manager

on:
push:
branches:
- 'main'
paths:
- '.github/labels.yml'
- '.github/workflows/labels.yml'
pull_request:
paths:
- '.github/labels.yml'
- '.github/workflows/labels.yml'

jobs:
labeler:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Sync labels using config
uses: crazy-max/ghaction-github-labeler@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
yaml-file: .github/labels.yml
dry-run: ${{ github.event_name == 'pull_request' }}
exclude: |
help*
*issue

0 comments on commit 33d943e

Please sign in to comment.