From f6cc3eaa349fbd428a02b500d691a1b5802b5765 Mon Sep 17 00:00:00 2001 From: Manuel de la Torre Date: Fri, 23 Dec 2022 17:13:38 -0600 Subject: [PATCH] Adds a common problem to "Troubleshooting" section --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 38b11dd..e8a0403 100644 --- a/README.md +++ b/README.md @@ -171,6 +171,24 @@ Check the guide for the tool you want to integrate: 3. If providing a Personal Access Token, make sure it has the `repo` permission for the projects you want. +
+ I get the error "Error commenting on the pull request...". + + This error happens when the action's permissions are configured as `read` by the organization. To fix it, overwrite them by adding a [`permissions`](https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs) configuration in the workflow file. The minimum required permissions are `contents: read` and `pull-requests: write`: + + ```yml + jobs: + stats: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - name: Run pull request stats + uses: flowwer-dev/pull-request-stats@master + ``` +
+
I'm a sponsor but still getting the error "...is a premium feature, available to sponsors".