Releases: peter-evans/slash-command-dispatch
Slash Command Dispatch v2.1.0
- Adds support for the repository permission levels
triageandmaintain. These levels are only applicable to organization repositories. See the documentation here for further details about permission levels.
Slash Command Dispatch v2.0.0
Breaking changes
-
The format of the
slash_commandcontext has been changed to prevent an issue where named arguments can overwrite other properties of the payload.The following diff shows how the
slash_commandcontext has changed for the example command/deploy branch=master smoke-test dry-run reason="new feature"."slash_command": { "command": "deploy", - "args": "branch=master smoke-test dry-run reason=\"new feature\"", - "unnamed_args": "smoke-test dry-run", - "arg1": "smoke-test", - "arg2": "dry-run" - "branch": "master", - "reason": "new feature" + "args": { + "all": "branch=master smoke-test dry-run reason=\"new feature\"", + "unnamed": { + "all": "smoke-test dry-run", + "arg1": "smoke-test", + "arg2": "dry-run" + }, + "named": { + "branch": "master", + "reason": "new feature" + }, + } } -
The
named-argsinput (standard configuration) andnamed_argsJSON property (advanced configuration) have been removed. Named arguments will now always be parsed and added to theslash_commandcontext. -
The
client_payload.github.payload.issue.bodyandclient_payload.pull_request.bodycontext properties will now be truncated if they exceed 1000 characters.
New features
-
Commands can now be dispatched via the new workflow_dispatch event. For standard configuration, set the new
dispatch-typeinput toworkflow. For advanced configuration, set thedispatch_typeJSON property of a command toworkflow.
There are significant differences in the action's behaviour when usingworkflowdispatch. See workflow dispatch for usage details. -
Added a new input
static-args(standard configuration), and a new JSON propertystatic_args(advanced configuration). This is a list of arguments that will always be dispatched with commands.Standard configuration:
static-args: | production region=us-east-1
Advanced configuration:
"static_args": [ "production", "region=us-east-1" ]
-
Slash command arguments can now be double-quoted to allow for argument values containing spaces.
e.g.
/deploy branch=master dry-run reason="new feature"/send "hello world!" -
The
commandsinput can now be newline separated, or comma separated.e.g.
commands: | deploy integration-test build-docs
Slash Command Dispatch v1.2.0
- Defaults
reaction-tokento the defaultGITHUB_TOKENinstead of the value oftoken. This is a minor, cosmetic behaviour change and should not be breaking. See reaction-token.
Slash Command Dispatch v1.1.3
- Dependency updates
Slash Command Dispatch v1.1.2
- Small fix to trim whitespace around the command on the first line
Slash Command Dispatch v1.1.1
- Fixed an issue where newlines in comments prevented commands and arguments from being parsed correctly. As a result of the fix, any content in the comment after the first line is not considered part of the command.
Slash Command Dispatch v1.1.0
- Added named arguments feature. If the
named-argsinput is set totrue, any arguments that are prefixed in the formatname=argumentwill be parsed and added to the payload. See here for further details.
Slash Command Dispatch v1.0.0
- First release 🚀