From 2296beb809f2eb56aef29bc8b83b5adc3319dbbc Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Fri, 24 Jul 2020 09:25:31 +0900 Subject: [PATCH] Add a diff for the slash_command context change --- docs/updating.md | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/docs/updating.md b/docs/updating.md index 8735c99..fa4cb95 100644 --- a/docs/updating.md +++ b/docs/updating.md @@ -4,23 +4,29 @@ - The format of the `slash_command` context has been changed to prevent an issue where named arguments can overwrite other properties of the payload. - The following is an example of the new `slash_command` context. The slash command `/deploy branch=master smoke-test dry-run reason="new feature"` will be converted to a JSON payload as follows. + The following diff shows how the `slash_command` context has changed for the example command `/deploy branch=master smoke-test dry-run reason="new feature"`. - ```json + ```diff "slash_command": { "command": "deploy", - "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" - }, - } + - "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" + + }, + + } } ```