Skip to content

Commit 871c244

Browse files
committed
ci: improve commit lint enforcement
this is a test commit body
1 parent ffdc1d4 commit 871c244

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/pr.yml

+15
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,21 @@ jobs:
2323
- name: Execute commitlint
2424
run: npx commitlint --from=origin/${{ github.base_ref }}
2525

26+
- name: Get PR Title
27+
run: "echo 'PR Title: ${{ github.event.pull_request.title }}'"
28+
29+
- name: Get PR Body
30+
run: 'echo "PR Body: ${{ github.event.pull_request.body }}"'
31+
32+
- name: Fetch commits
33+
run: git fetch origin ${{ github.event.pull_request.head.ref }}
34+
35+
- name: Get commit messages
36+
run: |
37+
git log --pretty=format:'%s' --abbrev-commit ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} > commits.txt
38+
echo "Commit Messages:"
39+
cat commits.txt
40+
2641
check-file-format:
2742
name: Check files changes follow guidelines
2843
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)