From 308000ed628b98704e0f02ce616058f34bf6cd74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Sat, 7 Sep 2024 16:16:09 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Update=20docs=20and=20include=20?= =?UTF-8?q?`permissions`=20for=20`pull-request:=20write`=20(#29)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/issue-manager.yml | 1 + README.md | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issue-manager.yml b/.github/workflows/issue-manager.yml index 240d2d9..95139f8 100644 --- a/.github/workflows/issue-manager.yml +++ b/.github/workflows/issue-manager.yml @@ -13,6 +13,7 @@ on: permissions: issues: write + pull-requests: write jobs: issue-manager: diff --git a/README.md b/README.md index fa5c2de..83fc8e0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Issue Manager -Automatically close issues or Pull Requests that have a **label**, after a **custom delay**, if no one replies back. +Automatically close issues or pull requests that have a **label**, after a **custom delay**, if no one replies back. ## How to use @@ -27,6 +27,7 @@ on: permissions: issues: write + pull-requests: write jobs: issue-manager: @@ -217,6 +218,7 @@ on: permissions: issues: write + pull-requests: write jobs: issue-manager: @@ -286,6 +288,7 @@ on: permissions: issues: write + pull-requests: write jobs: issue-manager: @@ -355,9 +358,10 @@ From the examples above you can see a section: ```yml permissions: issues: write + pull-requests: write ``` -This is to give the GitHub Action the necessary permissions to write to the issues. +This is to give the GitHub Action the necessary permissions to write to the issues and pull requests (including removing the label). When you add this GitHub Action to a personal repo, you might not need this specific permission.