From 6c9cdb55e244e27012b4a6163e865cdfe42feb34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Grzegorczyk?= Date: Tue, 26 Nov 2024 20:47:42 +0100 Subject: [PATCH] closes #73 Limits reminder action to run only in main repo --- .github/workflows/inactive-pull-request-reminder.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/inactive-pull-request-reminder.yml b/.github/workflows/inactive-pull-request-reminder.yml index 010d185..15f3a20 100644 --- a/.github/workflows/inactive-pull-request-reminder.yml +++ b/.github/workflows/inactive-pull-request-reminder.yml @@ -6,11 +6,13 @@ on: jobs: inactive-pr-reminder: + permissions: + pull-requests: write + if: github.repository == 'ksummarized/ksummarized.com' runs-on: ubuntu-latest steps: - uses: sojusan/github-action-reminder@v1 with: - github_token: ${{ secrets.GITHUB_TOKEN }} reminder_message: "Two days have passed since the last activity. Please take care of this PR." inactivity_deadline_hours: 48 default_users_to_notify: |