From 68e1071aa7c4a108f3670d14649ec2afa1f705a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E8=8F=9C=20Cai?= Date: Tue, 17 Sep 2024 17:16:33 +0800 Subject: [PATCH] docs: Add permission instructions for `createComment` --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 09d8341..ff345b8 100644 --- a/README.md +++ b/README.md @@ -155,6 +155,10 @@ on: issues: types: [opened] +# see: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token +permissions: + pull-requests: 'write' + jobs: comment: runs-on: ubuntu-latest