Skip to content

Commit ff4fc24

Browse files
committed
Use simple git log instead of gh cli
1 parent 6363a22 commit ff4fc24

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/require-conventional-commit.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ jobs:
1818
BASE_SHA="${{ github.event.pull_request.base.sha }}"
1919
HEAD_SHA="${{ github.event.pull_request.head.sha }}"
2020
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
21+
echo "PR_COMMITS=$(git log --pretty=format:'%s' $BASE_SHA...$HEAD_SHA)" >> "$GITHUB_OUTPUT"
2622
2723
- name: Check for conventional commits
2824
continue-on-error: true

0 commit comments

Comments
 (0)