Skip to content

[BUG]: Drift from upstream schema – POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches #539

Description

@galexite

What happened?

The status code and response body for the POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches endpoint was changed in the original schema:

https://github.com/github/rest-api-description/blob/d77b7dde24f7b3a52b3532b1337d4be8a60fb34d/descriptions/api.github.com/CHANGELOG.md?plain=1#L548-L549

A successful response should have a 200 OK status and return details about the newly dispatched workflow run in the body.

However, this doesn't seem to be reflected in the generated OpenAPI schemas here, or at least I can't seem to find what I am missing, the generated schema here only includes a 204 response with an empty body. I think something needs regenerating?

(For context, this is causing the TypeScript response type information for the endpoint in octokit/rest.js to be out of sync with the actual response received from the API.)

Versions

main

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: BugSomething isn't working as documented

    Type

    No type

    Projects

    Status
    🆕 Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions