Skip to content

Commit

Permalink
Merge pull request #11 from kufu/fix-action
Browse files Browse the repository at this point in the history
fix: security fix
  • Loading branch information
alpaca-tc authored Jul 3, 2024
2 parents b4d652a + c8907bb commit 495ae02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/titleCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: check title
env:
TITLE: ${{ github.event.pull_request.title }}
run: |
regex="^(feat|fix|docs|chore|style|refactor|perf|test)!?(\([^\)]+\))?:[[:space:]].+"
if [[ "${{ github.event.pull_request.title }}" =~ $regex ]]; then
if [[ "${TITLE}" =~ $regex ]]; then
echo OK
else
echo "::error::Pull Request のタイトルが Conventional Commits 形式にマッチしません"
Expand Down

0 comments on commit 495ae02

Please sign in to comment.