Skip to content

docs: add new labels #20

docs: add new labels

docs: add new labels #20

name: "Pull Request Labels Validation"
on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
- unlabeled
jobs:
check_pull_request_labels:
name: "Check pull request labels"
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: mheap/github-action-required-labels@v5
with:
mode: "exactly"
count: 1
labels: "pull request: breaking,pull request: bug,pull request: community,pull request: dependencies,pull request: documentation,pull request: feature-major,pull request: feature-minor,pull request: maintenance,pull request: skip-changelog,pull request: translation,dependencies"
add_comment: true
message: "This PR is being prevented from merging because you haven't added one of the `pull request:` labels. You'll need to add one of them before this PR can be merged."
check_issue_labels:
name: "Check issue labels"
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: mheap/github-action-required-labels@v5
with:
mode: "exactly"
count: 0
labels: "issue: [DEV],issue: bug,issue: dependencies,issue: documentation,issue: enhancement,issue: feature-major,issue: feature-minor,issue: maintenance,issue: question"
add_comment: true
message: "This PR is being prevented from merging because you have added one of the `issue:` labels. You'll need to remove it before this PR can be merged."