Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/check-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ jobs:

- name: "📜 Validate commit messages"
run: npx --no-install commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose

- name: "📜 Validate PR title (used as squash commit message)"
run: echo "${{ github.event.pull_request.title }}" | npx --no-install commitlint --verbose
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in b2d9ed7: PR title is now passed via env: PR_TITLE and piped with printf '%s\n' instead of direct echo interpolation.

2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
},
rules: {
'subject-case': [0],
'subject-full-stop': [0],
'subject-full-stop': [2, 'always', '.'],
'header-max-length': [2, 'always', 78],
'scope-enum': [
2,
Expand Down
Loading