Skip to content

perf: only call rewritePatternIfRequired() if parsing failed using joni #466

perf: only call rewritePatternIfRequired() if parsing failed using joni

perf: only call rewritePatternIfRequired() if parsing failed using joni #466

Workflow file for this run

# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions
name: "Validate PR"
on:
pull_request_target:
types:
- opened
- edited
- synchronize
jobs:
build:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: "Validate semantic PR title"
uses: amannn/action-semantic-pull-request@v5 # https://github.com/amannn/action-semantic-pull-request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# https://mazer.dev/en/git/best-practices/git-semantic-commits/
# https://github.com/commitizen/conventional-commit-types/blob/master/index.json
types: |
build
ci
chore
docs
fix
feat
refact
revert
perf
style
test
scopes: |
core
deps
ui
requireScope: false
- name: "Label PR"
uses: srvaroa/[email protected] # https://github.com/srvaroa/labeler
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"