From 6cb455f83478f26f58d1b90629e7dddec4d80766 Mon Sep 17 00:00:00 2001 From: Giovanni Liva Date: Thu, 22 Feb 2024 08:26:10 +0100 Subject: [PATCH] ci: fix linting PR permissions Signed-off-by: Giovanni Liva --- .github/workflows/lint-pr.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml index 2a3907e79..0c12bddb0 100644 --- a/.github/workflows/lint-pr.yml +++ b/.github/workflows/lint-pr.yml @@ -7,6 +7,9 @@ on: - edited - synchronize +permissions: + pull-requests: write + jobs: main: name: Validate PR title @@ -25,11 +28,11 @@ jobs: header: pr-title-lint-error message: | Hey there and thank you for opening this pull request! 👋🏼 - + 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. Details: - + ``` ${{ steps.lint_pr_title.outputs.error_message }} ``` @@ -37,6 +40,6 @@ jobs: # Delete a previous comment when the issue has been resolved - if: ${{ steps.lint_pr_title.outputs.error_message == null }} uses: marocchino/sticky-pull-request-comment@v2 - with: + with: header: pr-title-lint-error delete: true