Skip to content

Commit

Permalink
ci: use @commitlint/config-angular
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-mader committed Sep 2, 2024
1 parent 9480a40 commit fd0422a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-angular"]
}
4 changes: 3 additions & 1 deletion .github/workflows/lint-pr-title.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
with:
node-version: "lts/*"

- run: echo $TITLE | npx commitlint
- run: |
npm install --no-save @commitlint/config-angular
echo $TITLE | npx commitlint
env:
# Security: we mitigate script injections by using an intermediate environment variable
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
Expand Down

0 comments on commit fd0422a

Please sign in to comment.