Skip to content

Commit

Permalink
ci: improve commit lint enforcement
Browse files Browse the repository at this point in the history
this is a test commit body
  • Loading branch information
dianjuar committed Oct 28, 2024
1 parent ffdc1d4 commit 871c244
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,21 @@ jobs:
- name: Execute commitlint
run: npx commitlint --from=origin/${{ github.base_ref }}

- name: Get PR Title
run: "echo 'PR Title: ${{ github.event.pull_request.title }}'"

- name: Get PR Body
run: 'echo "PR Body: ${{ github.event.pull_request.body }}"'

- name: Fetch commits
run: git fetch origin ${{ github.event.pull_request.head.ref }}

- 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
check-file-format:
name: Check files changes follow guidelines
runs-on: ubuntu-latest
Expand Down

0 comments on commit 871c244

Please sign in to comment.