Skip to content

Commit

Permalink
Adds a common problem to "Troubleshooting" section
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmhtr committed Dec 23, 2022
1 parent 7f5b25b commit f6cc3ea
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
</details>

<details>
<summary>I get the error "Error commenting on the pull request...".</summary>

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
```
</details>

<details>
<summary>I'm a sponsor but still getting the error "...is a premium feature, available to sponsors".</summary>

Expand Down

0 comments on commit f6cc3ea

Please sign in to comment.