Skip to content

Commit

Permalink
ci: Replace the PR validator with a labeler (#1560)
Browse files Browse the repository at this point in the history
  • Loading branch information
dermotduffy committed Sep 22, 2024
1 parent c225a9a commit 217f35e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 47 deletions.
59 changes: 15 additions & 44 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -1,69 +1,40 @@
---
# 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
# Conventional Commit related labels (match entries in `semantics-prs.yml`).
- name: bug
description: Something isn't working
color: d73a4a
- name: build
description: Build System and Dependencies
- name: chore
description: Chore
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
- name: feature
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

# Other labels
- name: breaking
description: Breaking Changes
color: bfd4f2
- name: help wanted
description: Extra attention is needed
color: 008672
- name: question
description: Further information is requested
color: d876e3
- name: votes needed
description: Vote for this feature to encourage prioritization!
color: e2ed82
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/semantic-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: ytanikin/[email protected]
with:
task_types: '["feat","fix","docs","test","ci","refactor","perf","chore"]'
custom_labels: '{"feat": "feature", "fix": "bug", "docs": "documentation", "test": "testing", "ci": "ci", "refactor": "refactoring", "perf": "performance", "chore": "chore"}'

0 comments on commit 217f35e

Please sign in to comment.