ci: Replace the PR validator with a labeler (#1560)
This commit is contained in:
+15
-44
@@ -1,69 +1,40 @@
|
|||||||
---
|
---
|
||||||
# Labels names are important as they are used by Release Drafter to decide
|
# Conventional Commit related labels (match entries in `semantics-prs.yml`).
|
||||||
# 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
|
- name: bug
|
||||||
description: Something isn't working
|
description: Something isn't working
|
||||||
color: d73a4a
|
color: d73a4a
|
||||||
- name: build
|
- name: chore
|
||||||
description: Build System and Dependencies
|
description: Chore
|
||||||
color: bfdadc
|
color: bfdadc
|
||||||
- name: ci
|
- name: ci
|
||||||
description: Continuous Integration
|
description: Continuous Integration
|
||||||
color: 4a97d6
|
color: 4a97d6
|
||||||
- name: dependencies
|
|
||||||
description: Pull requests that update a dependency file
|
|
||||||
color: 0366d6
|
|
||||||
- name: documentation
|
- name: documentation
|
||||||
description: Improvements or additions to documentation
|
description: Improvements or additions to documentation
|
||||||
color: 0075ca
|
color: 0075ca
|
||||||
- name: duplicate
|
- name: feature
|
||||||
description: This issue or pull request already exists
|
|
||||||
color: cfd3d7
|
|
||||||
- name: enhancement
|
|
||||||
description: New feature or request
|
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
|
|
||||||
- name: help wanted
|
|
||||||
description: Extra attention is needed
|
|
||||||
color: 008672
|
|
||||||
- name: invalid
|
|
||||||
description: This doesn't seem right
|
|
||||||
color: e4e669
|
|
||||||
- name: performance
|
- name: performance
|
||||||
description: Performance
|
description: Performance
|
||||||
color: '016175'
|
color: '016175'
|
||||||
- name: python
|
|
||||||
description: Pull requests that update Python code
|
|
||||||
color: 2b67c6
|
|
||||||
- name: question
|
|
||||||
description: Further information is requested
|
|
||||||
color: d876e3
|
|
||||||
- name: refactoring
|
- name: refactoring
|
||||||
description: Refactoring
|
description: Refactoring
|
||||||
color: ef67c4
|
color: ef67c4
|
||||||
- name: removal
|
|
||||||
description: Removals and Deprecations
|
|
||||||
color: 9ae7ea
|
|
||||||
- name: style
|
|
||||||
description: Style
|
|
||||||
color: c120e5
|
|
||||||
- name: testing
|
- name: testing
|
||||||
description: Testing
|
description: Testing
|
||||||
color: b1fc6f
|
color: b1fc6f
|
||||||
- name: wontfix
|
|
||||||
description: This will not be worked on
|
# Other labels
|
||||||
color: ffffff
|
- 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
|
- name: votes needed
|
||||||
description: Vote for this feature to encourage prioritization!
|
description: Vote for this feature to encourage prioritization!
|
||||||
color: e2ed82
|
color: e2ed82
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ jobs:
|
|||||||
name: Validate PR title
|
name: Validate PR title
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: amannn/action-semantic-pull-request@v5
|
- uses: ytanikin/PRConventionalCommits@1.2.0
|
||||||
env:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
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"}'
|
||||||
|
|||||||
Reference in New Issue
Block a user