Skip to content

Commit 8a27bf0

Browse files
authored
fix(ci): resolving error in validate PR workflow (#488)
2 parents 934c1d8 + 96e8cd5 commit 8a27bf0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

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

10+
permissions:
11+
pull-requests: read
12+
statuses: write
13+
1014
jobs:
1115
main:
1216
name: Validate PR Title
@@ -17,7 +21,6 @@ jobs:
1721
env:
1822
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1923
with:
20-
# Allowed types based on Conventional Commits
2124
types: |
2225
feat
2326
fix
@@ -26,15 +29,11 @@ jobs:
2629
test
2730
refactor
2831
ci
29-
# Scope is optional
3032
requireScope: false
31-
# This example ensures the subject doesn't start with an uppercase character.
3233
subjectPattern: ^(?![A-Z]).+$
3334
subjectPatternError: |
3435
The subject "{subject}" found in the pull request title "{title}"
3536
didn't match the configured pattern. Please ensure that the subject
3637
doesn't start with an uppercase character.
37-
# Allow Work-in-Progress (WIP) PRs using the "[WIP]" prefix
3838
wip: true
39-
# Skip validation for single-commit PRs
4039
validateSingleCommit: false

0 commit comments

Comments
 (0)