chore(deps): update github/issue-labeler action to v3.4 - autoclosed #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint PR Title | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- edited | |
jobs: | |
lint-pr-title: | |
name: Validate PR title | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/amannn/action-semantic-pull-request | |
- uses: amannn/action-semantic-pull-request@v5 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
# Configure which types are allowed (newline-delimited). | |
# Derived from https://github.com/commitizen/conventional-commit-types | |
types: | | |
fix | |
feat | |
docs | |
style | |
refactor | |
perf | |
test | |
build | |
ci | |
chore | |
revert | |
release | |
# Configure which scopes are allowed (newline-delimited). | |
# These are regex patterns auto-wrapped in `^ $`. | |
scopes: | | |
^(?![A-Z]).+$ | |
# Configure that a scope must always be provided. | |
requireScope: false | |
# Configure which scopes are disallowed in PR titles (newline-delimited). | |
# For instance by setting the value below, `chore(release): ...` (lowercase) | |
# and `ci(e2e,release): ...` (unknown scope) will be rejected. | |
# These are regex patterns auto-wrapped in `^ $`. | |
disallowScopes: | | |
[A-Z]+ | |
# Configure additional validation for the subject based on a regex. | |
ignoreLabels: | | |
bot | |
release-labeling: | |
# See context at https://github.com/web-infra-dev/rspack/discussions/2760 | |
name: Labeling for releasing | |
runs-on: ubuntu-latest | |
steps: | |
- uses: github/issue-labeler@v3.4 #May not be the latest version | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
configuration-path: .github/pr-labeler.yml | |
enable-versioned-regex: 0 | |
include-title: 1 | |
sync-labels: 1 |