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
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,14 +48,16 @@ jobs:
48
48
commands: rebase, integration-test, create-ticket
49
49
```
50
50
51
+
This action also features [advanced configuration](docs/advanced-configuration.md) that allows each command to be configured individually if necessary. Use the standard configuration above unless you require advanced features.
52
+
51
53
### Action inputs
52
54
53
55
| Input | Description | Default |
54
56
| --- | --- | --- |
55
57
| `token` | (**required**) A `repo` scoped [PAT](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line). | |
56
58
| `reaction-token` | `GITHUB_TOKEN` or a `repo` scoped [PAT](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line). | |
| `config` | | JSON configuration for commands. See [Advanced configuration](docs/advanced-configuration.md) | |
66
68
| `config-from-file` | | JSON configuration from a file for commands. See [Advanced configuration](docs/advanced-configuration.md) | |
67
69
68
-
This action also features [advanced configuration](docs/advanced-configuration.md) that allows each command to be configured individually if necessary.
69
-
70
70
### What is the reaction-token?
71
71
72
72
If you don't specify a token for `reaction-token` it will use the [PAT](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line) supplied via `token`.
@@ -121,16 +121,16 @@ If the `named-args` input is set to `true`, any arguments that are prefixed in t
121
121
For example, the slash command `/deploy branch=master env=prod some other args` will be set in the JSON payload as follows.
122
122
123
123
```json
124
-
{
125
-
"command": "deploy",
126
-
"args": "branch=master env=prod some other args",
127
-
"unnamed_args": "some other args",
128
-
"branch": "master",
129
-
"env": "prod",
130
-
"arg1": "some",
131
-
"arg2": "other",
132
-
"arg3": "args"
133
-
}
124
+
"slash_command": {
125
+
"command": "deploy",
126
+
"args": "branch=master env=prod some other args",
127
+
"unnamed_args": "some other args",
128
+
"branch": "master",
129
+
"env": "prod",
130
+
"arg1": "some",
131
+
"arg2": "other",
132
+
"arg3": "args"
133
+
}
134
134
```
135
135
136
136
These named arguments can be accessed in a workflow as follows.
0 commit comments