We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fddc2be commit a5970dbCopy full SHA for a5970db
.github/workflows/pr.yml
@@ -28,9 +28,14 @@ jobs:
28
29
- name: Get commit messages
30
run: |
31
- git log --pretty=format:'%s' --abbrev-commit ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} > commits.txt
32
- echo "Commit Messages:"
33
- 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')
34
+ TITLE=${{ github.event.pull_request.title }}
35
+
36
+ echo "${TITLE}\n${BODY}" > commit-message.txt
37
+ cat commit-message.txt
38
+ cat commit-message.txt | npx commitlint
39
40
check-file-format:
41
name: Check files changes follow guidelines
0 commit comments