From f45723316eeacc1d8fc9e53acaef287aab1cfa98 Mon Sep 17 00:00:00 2001 From: Levi van Noort <73097785+levivannoort@users.noreply.github.com> Date: Wed, 28 May 2025 08:01:16 +0200 Subject: [PATCH 1/3] chore: prevent error on pull request creation --- .github/workflows/update-contributors.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-contributors.yaml b/.github/workflows/update-contributors.yaml index 2cce89f..b350a16 100644 --- a/.github/workflows/update-contributors.yaml +++ b/.github/workflows/update-contributors.yaml @@ -36,6 +36,7 @@ jobs: run: | git config user.name github-actions git config user.email github-actions@github.com + git checkout -b update-contributors git add README.md git commit -m "chore: update contributors section" git push -u origin update-contributors From 1120067a84cf9c9b89569ff42de3bdcdcb90bd30 Mon Sep 17 00:00:00 2001 From: Levi van Noort <73097785+levivannoort@users.noreply.github.com> Date: Wed, 28 May 2025 08:04:02 +0200 Subject: [PATCH 2/3] chore: add write permissions for pull-requests --- .github/workflows/update-contributors.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/update-contributors.yaml b/.github/workflows/update-contributors.yaml index b350a16..8d6bfc8 100644 --- a/.github/workflows/update-contributors.yaml +++ b/.github/workflows/update-contributors.yaml @@ -5,6 +5,10 @@ on: schedule: - cron: '0 0 * * 0' +permissions: + contents: write + pull-requests: write + jobs: update-contributors: name: validate-pull-request-title From 19a5ba515a37a0b08fa066d90197fd69a51685de Mon Sep 17 00:00:00 2001 From: Levi van Noort <73097785+levivannoort@users.noreply.github.com> Date: Wed, 28 May 2025 08:16:28 +0200 Subject: [PATCH 3/3] chore: update generate-contributors-list to v1.1.0 --- .github/workflows/update-contributors.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-contributors.yaml b/.github/workflows/update-contributors.yaml index 8d6bfc8..15d221b 100644 --- a/.github/workflows/update-contributors.yaml +++ b/.github/workflows/update-contributors.yaml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@v4 - name: update-contributors - uses: kontrolplane/generate-contributors-list@v1.0.0 + uses: kontrolplane/generate-contributors-list@v1.1.0 with: owner: kontrolplane repository: pull-request-title-validator