ci: add GitHub Actions workflow for labeling PRs with Conventional Commits (#2522)
* feat: Add GitHub Actions workflow for labeling PRs with Conventional Commits * feat(release.yml): add release.yml file with predefined categories for changelog to improve consistency and clarity in release notes * style(release.yml): change 'perf' label to 'performance' for better clarity and consistency across labels in changelog section
This commit is contained in:
parent
bf5e7b343a
commit
238497d900
2 changed files with 58 additions and 0 deletions
24
.github/workflows/conventional-labels.yml
vendored
Normal file
24
.github/workflows/conventional-labels.yml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Warning, do not check out untrusted code with
|
||||
# the pull_request_target event.
|
||||
name: Label PRs with Conventional Commits
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [ opened, edited , synchronize]
|
||||
|
||||
jobs:
|
||||
validate-pr:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Validate the pull request
|
||||
uses: Namchee/conventional-pr@v0.15.4
|
||||
with:
|
||||
access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
verbose: true
|
||||
label:
|
||||
runs-on: ubuntu-latest
|
||||
name: Lint PR
|
||||
steps:
|
||||
- name: label
|
||||
uses: action-runner/conventional-labeler@v1
|
||||
with:
|
||||
access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue