docs(readme): add missing permission for delete-branch option in readme (#796)
This commit is contained in:
parent
48bae5932f
commit
65afee970e
|
@ -11,11 +11,12 @@ The configuration must be on the default branch and the default values will:
|
||||||
## Recommended permissions
|
## Recommended permissions
|
||||||
|
|
||||||
For the execution of this action, it must be able to fetch all issues and pull requests from your repository.
|
For the execution of this action, it must be able to fetch all issues and pull requests from your repository.
|
||||||
In addition, based on the provided configuration, the action could require more permission(s) (e.g.: add label, remove label, comment, close, etc.).
|
In addition, based on the provided configuration, the action could require more permission(s) (e.g.: add label, remove label, comment, close, delete branch, etc.).
|
||||||
This can be achieved with the following [configuration in the action](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#permissions) if the permissions are restricted:
|
This can be achieved with the following [configuration in the action](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#permissions) if the permissions are restricted:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
permissions:
|
permissions:
|
||||||
|
contents: write # only for delete-branch option
|
||||||
issues: write
|
issues: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
```
|
```
|
||||||
|
@ -396,7 +397,7 @@ Default value: unset
|
||||||
If set to `true`, the stale workflow will automatically delete the GitHub branches related to the pull requests automatically closed by the stale workflow.
|
If set to `true`, the stale workflow will automatically delete the GitHub branches related to the pull requests automatically closed by the stale workflow.
|
||||||
|
|
||||||
Default value: `false`
|
Default value: `false`
|
||||||
Required Permission: `pull-requests: write`
|
Required Permission: `pull-requests: write` and `contents: write`
|
||||||
|
|
||||||
#### exempt-milestones
|
#### exempt-milestones
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue