Skip to content

ActionsCreateWorkflowDispatchEndpoint Type does not allow workflow_id to be string #155

@prototypicalpro

Description

@prototypicalpro

What happened?

The ActionsCreateWorkflowDispatchEndpoint type does not allow workflow_id to be a string. This disallows specifying a filename as the workflow_id as described in the documentation, preventing the following code from compiling:

octokit.actions.createWorkflowDispatch({
  owner: ...
  repo: ...
  ref: ...
  workflow_id: 'the-filename.yml'
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working as documented, or is being fixedtypescriptRelevant to TypeScript users only

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions