* feat: support yml or yaml (#427) test: support yml or yaml chore: lint * Fix getting permissions for the contributors who are a part of the team (#424) * Fix getActorPermission to handle team-based permissions * Use 'user.permissions' object to return permission * Add RepoPermission type * Make new build * feat: update runtime to node 24 * fix: eslint-plugin dep * fix: remove unused type * docs: update whats new --------- Co-authored-by: Patrick Lee Scott <[email protected]> Co-authored-by: Volodymyr Zotov <[email protected]>
49 lines
1.6 KiB
YAML
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: 'node24'
|
|
main: 'dist/index.js'
|
|
branding:
|
|
icon: 'target'
|
|
color: 'gray-dark'
|