Skip to content

Commit

Permalink
ci(labeler): update labeler configuration and workflow
Browse files Browse the repository at this point in the history
- add quotes around color values in labels.yml
- expand push paths to include pull requests
- add dry-run option for pull requests
- specify github-token and yaml-file explicitly
- exclude labels matching help* and *issue patterns
  • Loading branch information
awwaawwa committed Jan 28, 2025
1 parent 1075932 commit 03184d2
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 22 deletions.
36 changes: 18 additions & 18 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,61 +6,61 @@
# the GitHub Action https://github.com/marketplace/actions/github-labeler.
- name: breaking
description: Breaking Changes
color: bfd4f2
color: "bfd4f2"
- name: bug
description: Something isn't working
color: d73a4a
color: "d73a4a"
- name: build
description: Build System and Dependencies
color: bfdadc
color: "bfdadc"
- name: ci
description: Continuous Integration
color: 4a97d6
color: "4a97d6"
- name: dependencies
description: Pull requests that update a dependency file
color: 0366d6
color: "0366d6"
- name: documentation
description: Improvements or additions to documentation
color: 0075ca
color: "0075ca"
- name: duplicate
description: This issue or pull request already exists
color: cfd3d7
color: "cfd3d7"
- name: enhancement
description: New feature or request
color: a2eeef
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
color: "7057ff"
- name: help wanted
description: Extra attention is needed
color: 008672
color: "008672"
- name: invalid
description: This doesn't seem right
color: e4e669
color: "e4e669"
- name: performance
description: Performance
color: "016175"
- name: python
description: Pull requests that update Python code
color: 2b67c6
color: "2b67c6"
- name: question
description: Further information is requested
color: d876e3
color: "d876e3"
- name: refactoring
description: Refactoring
color: ef67c4
color: "ef67c4"
- name: removal
description: Removals and Deprecations
color: 9ae7ea
color: "9ae7ea"
- name: style
description: Style
color: c120e5
color: "c120e5"
- name: testing
description: Testing
color: b1fc6f
color: "b1fc6f"
- name: wontfix
description: This will not be worked on
color: ffffff
color: "ffffff"
19 changes: 15 additions & 4 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ name: Labeler

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

permissions:
contents: read
Expand All @@ -22,4 +27,10 @@ jobs:
- name: Run Labeler
uses: crazy-max/ghaction-github-labeler@b54af0c25861143e7c8813d7cbbf46d2c341680c # v5.1.0
with:
skip-delete: true
skip-delete: true
dry-run: ${{ github.event_name == 'pull_request' }}
github-token: ${{ secrets.GITHUB_TOKEN }}
yaml-file: .github/labels.yml
exclude: |
help*
*issue

0 comments on commit 03184d2

Please sign in to comment.