Skip to content

Commit

Permalink
fix: verify how it works
Browse files Browse the repository at this point in the history
  • Loading branch information
dianjuar committed Oct 28, 2024
1 parent fddc2be commit 3ff6611
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,14 @@ jobs:

- name: Get commit messages
run: |
git log --pretty=format:'%s' --abbrev-commit ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} > commits.txt
echo "Commit Messages:"
cat commits.txt
BODY=$(git log \
--abbrev-commit ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} \
--pretty=format:'* %s%n%n%b')
TITLE='${{ github.event.pull_request.title }}'
echo "${TITLE}\n${BODY}" > commit-message.txt
cat commit-message.txt
cat commit-message.txt | npx commitlint
check-file-format:
name: Check files changes follow guidelines
Expand Down

0 comments on commit 3ff6611

Please sign in to comment.