Skip to content

Commit ff52cb9

Browse files
authored
ci: fix linting PR permissions (#828)
Signed-off-by: Giovanni Liva <[email protected]>
1 parent 2736e55 commit ff52cb9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/lint-pr.yml

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

10+
permissions:
11+
pull-requests: write
12+
1013
jobs:
1114
main:
1215
name: Validate PR title
@@ -25,18 +28,18 @@ jobs:
2528
header: pr-title-lint-error
2629
message: |
2730
Hey there and thank you for opening this pull request! 👋🏼
28-
31+
2932
We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted.
3033
3134
Details:
32-
35+
3336
```
3437
${{ steps.lint_pr_title.outputs.error_message }}
3538
```
3639
3740
# Delete a previous comment when the issue has been resolved
3841
- if: ${{ steps.lint_pr_title.outputs.error_message == null }}
3942
uses: marocchino/sticky-pull-request-comment@v2
40-
with:
43+
with:
4144
header: pr-title-lint-error
4245
delete: true

0 commit comments

Comments
 (0)