You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ This action also features [advanced configuration](docs/advanced-configuration.m
75
75
| `reaction-token` | `GITHUB_TOKEN` or a `repo` scoped [Personal Access Token (PAT)](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line). See [reaction-token](#reaction-token) for further details. | `GITHUB_TOKEN` |
| `commands` | (**required**) A comma or newline separated list of commands. | |
78
-
| `permission` | The repository permission level required by the user to dispatch commands. (`none`, `read`, `write`, `admin`) | `write` |
78
+
| `permission` | The repository permission level required by the user to dispatch commands. See [permission](#permission) for further details. (`none`, `read`, `triage`, `write`, `maintain`, `admin`) | `write` |
79
79
| `issue-type` | The issue type required for commands. (`issue`, `pull-request`, `both`) | `both` |
| `repository` | The full name of the repository to send the dispatch events. | Current repository |
@@ -109,6 +109,17 @@ You can use a [PAT](https://help.github.com/en/github/authenticating-to-github/c
109
109
build-docs
110
110
```
111
111
112
+
#### `permission`
113
+
114
+
This input sets the repository permission level required by the user to dispatch commands.
115
+
It expects one of the [five repository permission levels](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/repository-permission-levels-for-an-organization#permission-levels-for-repositories-owned-by-an-organization), or `none`.
116
+
From the least to greatest permission level they are `none`, `read`, `triage`, `write`, `maintain` and `admin`.
117
+
118
+
Setting `write` as the required permission level means that any user with `write`, `maintain` or `admin` will be able to execute commands.
119
+
120
+
Note that `read`, `triage` and `maintain` only make sense for organization repositories.
121
+
For repositories owned by a user account there are only two permission levels, the repository owner (`admin`) and collaborators (`write`).
122
+
112
123
#### `dispatch-type`
113
124
114
125
By default, the action creates [repository_dispatch](https://developer.github.com/v3/repos/#create-a-repository-dispatch-event) events.
Copy file name to clipboardExpand all lines: docs/advanced-configuration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ Advanced configuration requires a combination of yaml based inputs and JSON conf
100
100
| `reaction-token` | | `GITHUB_TOKEN` or a `repo` scoped [Personal Access Token (PAT)](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line). See [reaction-token](https://github.com/peter-evans/slash-command-dispatch#reaction-token) for further details. | `GITHUB_TOKEN` |
| | `command` | (**required**) The slash command. | |
103
-
| | `permission` | The repository permission level required by the user to dispatch the command. (`none`, `read`, `write`, `admin`) | `write` |
103
+
| | `permission` | The repository permission level required by the user to dispatch the command. (`none`, `read`, `triage`, `write`, `maintain`, `admin`) | `write` |
104
104
| | `issue_type` | The issue type required for the command. (`issue`, `pull-request`, `both`) | `both` |
0 commit comments