Upgrade: nodejs version to 16 #323
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: PR Title | |
on: | |
pull_request: | |
types: [opened, edited, synchronize, reopened] | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: deepakputhraya/action-pr-title@3864bebc79c5f829d25dd42d3c6579d040b0ef16 | |
name: Validate PR Title | |
continue-on-error: false | |
with: | |
regex: '\w+:( [\w\.,]+)+( \(\w+ #\d+\))?' # Regex the title should match. "Level: message (optional #123)" | |
allowed_prefixes: 'Breaking,Build,Chore,Fix,New,Update,Upgrade,Deps' # title should start with the given prefix | |
# disallowed_prefixes: 'feat/,hotfix' # title should not start with the given prefix | |
prefix_case_sensitive: true # title prefix are case insensitive | |
# min_length: 5 # Min length of the title | |
max_length: 50 # Max length of the title | |
github_token: ${{ secrets.GITHUB_TOKEN }} # Default: ${{ github.token }} | |
- uses: mshick/add-pr-comment@07f690343c25a94e24a8acb70d03c86b701ae322 | |
name: Comment on PR | |
if: ${{ failure() }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
message: | | |
Please fix the title of this PR. | |
Examples: | |
``` | |
Breaking: I broke something | |
Fix: fix (fixes #1234) | |
Update: some packages updates (refs #123) | |
New: Added a new feature | |
``` | |
See more in `release.config.js`. |