Skip to content
This repository was archived by the owner on May 10, 2025. It is now read-only.

Commit a1f171b

Browse files
feat: Add extra-flags to commitlint
1 parent 9794797 commit a1f171b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/reusable-commitlint.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ on:
1515
required: false
1616
type: string
1717
default: "latest"
18+
commitlint-flags:
19+
description: "Extra CLI flags to pass to commitlint."
20+
required: false
21+
type: string
22+
default: ""
1823

1924
jobs:
2025
commitlint:
@@ -39,4 +44,4 @@ jobs:
3944
PR_TITLE: ${{ github.event.pull_request.title }}
4045
run: |
4146
echo "$PR_TITLE" > file.txt
42-
commitlint --verbose --color -e=file.txt
47+
commitlint ${{ inputs/commitlint-flags }} --verbose --color -e=file.txt

0 commit comments

Comments
 (0)