fix: add regex check in nextjs redirection #9635
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 Check" | |
# PR title is checked according to https://www.conventionalcommits.org/en/v1.0.0/ | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- edited | |
- synchronize | |
merge_group: | |
jobs: | |
main: | |
name: Validate PR title | |
runs-on: ubuntu-latest | |
steps: | |
- uses: amannn/action-semantic-pull-request@v5 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
subjectPattern: '^.{0,50}$' |