Skip to content

Commit 1de8a78

Browse files
committed
Pass workflow dispatch inputs as strings
Even if it is tempting to pass `false` as a Boolean value, this is incorrect. It will result in something like this: { statusCode: 422, statusMessage: 'Unprocessable Entity', requestMethod: 'POST', requestPath: '/repos/git-for-windows/git-for-windows-automation/actions/workflows/tag-git.yml/dispatches', json: { message: "Invalid request.\n\nFor 'additionalProperties', false is not a string.", documentation_url: 'https://docs.github.com/rest/reference/actions#create-a-workflow-dispatch-event' } } Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent bc586a4 commit 1de8a78

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

GitForWindowsHelper/slash-commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ module.exports = async (context, req) => {
311311
rev,
312312
owner,
313313
repo,
314-
snapshot: false
314+
snapshot: 'false'
315315
}
316316
)
317317

0 commit comments

Comments
 (0)