Skip to content

Commit 70441a7

Browse files
committed
fix(ci): resolving error in validate PR workflow
1 parent 934c1d8 commit 70441a7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/validate-pr-title.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- edited
88
- synchronize
99

10+
permissions:
11+
pull-requests: read
12+
1013
jobs:
1114
main:
1215
name: Validate PR Title
@@ -17,7 +20,6 @@ jobs:
1720
env:
1821
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1922
with:
20-
# Allowed types based on Conventional Commits
2123
types: |
2224
feat
2325
fix
@@ -26,15 +28,11 @@ jobs:
2628
test
2729
refactor
2830
ci
29-
# Scope is optional
3031
requireScope: false
31-
# This example ensures the subject doesn't start with an uppercase character.
3232
subjectPattern: ^(?![A-Z]).+$
3333
subjectPatternError: |
3434
The subject "{subject}" found in the pull request title "{title}"
3535
didn't match the configured pattern. Please ensure that the subject
3636
doesn't start with an uppercase character.
37-
# Allow Work-in-Progress (WIP) PRs using the "[WIP]" prefix
3837
wip: true
39-
# Skip validation for single-commit PRs
4038
validateSingleCommit: false

0 commit comments

Comments
 (0)