Skip to content

Commit

Permalink
chore: Update labels and workflows configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
cauliyang committed Oct 31, 2024
1 parent 491c9a0 commit 0b5d862
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 74 deletions.
81 changes: 15 additions & 66 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,15 @@
---
# Labels names are important as they are used by Release Drafter to decide
# regarding where to record them in changelog or if to skip them.
#
# The repository labels will be automatically configured using this file and
# the GitHub Action https://github.com/marketplace/actions/github-labeler.
- name: breaking
description: Breaking Changes
color: bfd4f2
- name: bug
description: Something isn't working
color: d73a4a
- name: build
description: Build System and Dependencies
color: bfdadc
- name: ci
description: Continuous Integration
color: 4a97d6
- name: dependencies
description: Pull requests that update a dependency file
color: 0366d6
- name: documentation
description: Improvements or additions to documentation
color: 0075ca
- name: duplicate
description: This issue or pull request already exists
color: cfd3d7
- name: enhancement
description: New feature or request
color: a2eeef
- name: github_actions
description: Pull requests that update Github_actions code
color: "000000"
- name: good first issue
description: Good for newcomers
color: 7057ff
- name: help wanted
description: Extra attention is needed
color: 008672
- name: invalid
description: This doesn't seem right
color: e4e669
- name: performance
description: Performance
color: "016175"
- name: python
description: Pull requests that update Python code
color: 2b67c6
- name: question
description: Further information is requested
color: d876e3
- name: refactoring
description: Refactoring
color: ef67c4
- name: removal
description: Removals and Deprecations
color: 9ae7ea
- name: style
description: Style
color: c120e5
- name: testing
description: Testing
color: b1fc6f
- name: wontfix
description: This will not be worked on
color: ffffff
- name: "bug"
color: "#d73a4a"
description: "Something isn't working"
- name: "documentation"
color: "#0075ca"
description: "Improvements or additions to documentation"
- name: "duplicate"
color: "#cfd8d7"
description: "This issue or pull request already exists"
- name: "enhancement"
color: "#a22eef"
- name: "wontfix_it"
color: "#000000"
description: "This will not be worked on"
from_name: "wontfix"
28 changes: 20 additions & 8 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
name: Labeler
name: github

on:
push:
branches:
- main
- "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
permissions:
contents: read
issues: write
steps:
- name: Check out the repository
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Run Labeler
uses: crazy-max/ghaction-github-labeler@v5.1.0
uses: crazy-max/ghaction-github-labeler@v5
with:
skip-delete: true
github-token: ${{ secrets.GITHUB_TOKEN }}
yaml-file: .github/labels.yml
dry-run: ${{ github.event_name == 'pull_request' }}
exclude: |
help*
*issue

0 comments on commit 0b5d862

Please sign in to comment.