feat: anchor系コンポーネントがtarget属性を持つ場合、rel属性を自動設定する #11773
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 | |
on: | |
pull_request: | |
types: [opened, edited, synchronize, reopened] | |
jobs: | |
conventional_commits: | |
runs-on: ubuntu-latest | |
steps: | |
- name: check title | |
run: | | |
regex="^(feat|fix|docs|chore|style|refactor|perf|test)!?(\([^\)]+\))?:[[:space:]].+" | |
if [[ "${{ github.event.pull_request.title }}" =~ $regex ]]; then | |
echo OK | |
else | |
echo "::error::Pull Request のタイトルが Conventional Commits 形式にマッチしません" | |
exit 1 | |
fi |