docs: Add permission instructions for createComment

This commit is contained in:
阿菜 Cai 2024-09-17 17:16:33 +08:00 committed by GitHub
parent 660ec11d82
commit 68e1071aa7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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