Skip to content

Using config doesn't allow an empty event-type-suffix #444

@lewis-jackson-bots

Description

@lewis-jackson-bots

Version

peter-evans/slash-command-dispatch@9bdcd7914ec1b75590b790b844aa3b8eee7c683a # v5.0.2

Current Behaviour

For this step:

    - name: Slash Command Dispatch
      uses: peter-evans/slash-command-dispatch@9bdcd7914ec1b75590b790b844aa3b8eee7c683a # v5.0.2
      with:
        token: xxx
        event-type-suffix: ""
        config: >
          [
            {
              "command": "help",
              "permission": "none",
              "event-type-suffix": "-command"
            },
            {
              "command": "playwright-label",
              "permission": "none",
              "event-type-suffix": "-command"
            },
            {
              "command": "playwright",
              "permission": "none",
              "dispatch-type": "workflow",
              "event-type-suffix": ""
            }
          ]

A /playwright comment will have the dispatch try to execute playwright-command.yml:

Using JSON configuration from 'config' input.
Command 'playwright' to be dispatched.
Command 'playwright' dispatched to 'my-org/my-repo' with event type 'playwright-command'.

Desired Behaviour

Dispatch should try to execute playwright.yml, like:

Using configuration from yaml inputs.
Command 'playwright' to be dispatched.
Command 'playwright' dispatched to workflow '.github/workflows/playwright.yml' in 'my-org/my-repo'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions