Files
2020-07-22 14:51:10 +09:00

49 lines
1.6 KiB
YAML

name: 'Slash Command Dispatch'
description: 'Facilitates "ChatOps" by creating dispatch events for slash commands'
inputs:
token:
description: 'A repo scoped GitHub Personal Access Token.'
required: true
reaction-token:
description: 'An optional GitHub token to use for reactions.'
default: ${{ github.token }}
reactions:
description: 'Add reactions to comments containing commands.'
default: true
commands:
description: 'A comma or newline separated list of commands.'
required: true
permission:
description: 'The repository permission level required by the user to dispatch commands.'
default: write
issue-type:
description: 'The issue type required for commands.'
default: both
allow-edits:
description: 'Allow edited comments to trigger command dispatches.'
default: false
repository:
description: 'The full name of the repository to send the dispatch events.'
default: ${{ github.repository }}
event-type-suffix:
description: 'The repository dispatch event type suffix for the commands.'
default: -command
static-args:
description: 'A comma or newline separated list of arguments that will be dispatched with every command.'
dispatch-type:
description: 'The dispatch type; `repository` or `workflow`.'
default: repository
config:
description: 'JSON configuration for commands.'
config-from-file:
description: 'JSON configuration from a file for commands.'
outputs:
error-message:
description: 'Validation errors when using `workflow` dispatch.'
runs:
using: 'node12'
main: 'dist/index.js'
branding:
icon: 'target'
color: 'gray-dark'