docs: align DefinePlugin
with #7108 in v0.x
#11611
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/[email protected] | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
configuration-path: .github/pr-labeler.yml | |
enable-versioned-regex: 0 | |
include-title: 1 | |
sync-labels: 1 |