We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6363a22 commit ff4fc24Copy full SHA for ff4fc24
.github/workflows/require-conventional-commit.yml
@@ -18,11 +18,7 @@ jobs:
18
BASE_SHA="${{ github.event.pull_request.base.sha }}"
19
HEAD_SHA="${{ github.event.pull_request.head.sha }}"
20
21
- if [[ -z "$PR_NUMBER" ]]; then
22
- echo "PR_COMMITS=$(git log --pretty=format:'%s' $BASE_SHA...$HEAD_SHA)" >> "$GITHUB_OUTPUT"
23
- else
24
- echo "PR_COMMITS=$(gh api -X GET /repos/${{ github.repository }}/pulls/$PR_NUMBER/commits --jq '.[].commit.message')" >> "$GITHUB_OUTPUT"
25
- fi
+ echo "PR_COMMITS=$(git log --pretty=format:'%s' $BASE_SHA...$HEAD_SHA)" >> "$GITHUB_OUTPUT"
26
27
- name: Check for conventional commits
28
continue-on-error: true
0 commit comments