Skip to content

fix: fixed bugs from loop doc of sep 16 to sep 20 #3836

fix: fixed bugs from loop doc of sep 16 to sep 20

fix: fixed bugs from loop doc of sep 16 to sep 20 #3836

Workflow file for this run

name: "📋 Semantic Pull Requests"
on:
pull_request_target:
types:
- opened
- edited
- synchronize
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
enforce-issue-link:
runs-on: ubuntu-latest
steps:
- name: Verify Linked Issue
uses: hattan/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.PR_GITHUB_TOKEN }}
with:
message: 'Please attach the issue link'
main:
name: Validate Pull Request title
runs-on: ubuntu-latest
steps:
- name: Check PR title format
id: check-pr-title
uses: actions/github-script@v5
with:
github-token: ${{ secrets.PR_GITHUB_TOKEN }}
script: |
const title = context.payload.pull_request.title;
const types = [
'feat',
'fix',
'docs',
'style',
'refactor',
'test',
'build',
'ci',
'chore',
'revert',
'l10n',
'taxonomy'
];
const regex = new RegExp(`^((${types.join('|')})|story\\([0-9]+\\)): .+`);
if (!regex.test(title)) {
core.setFailed('PR title does not match required pattern.');
}