Skip to content

[BUG]: octokit.request("PATCH /app/hook/config", { url }) throws error installationId option is required for installation authentication #584

@gr2m

Description

@gr2m

What happened?

The reason for this is that url is a special argument that octokit is using internally. I think a long time ago I asked the API to rename the parameter because of that conflict, also webhook_url would be more clear anyway.

Here is a workaround for anyone who runs into it

await octokit.request("PATCH /app/hook/config", {
  data: { url },
});

Versions

any

Relevant log output

No response

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working as documented, or is being fixed

    Type

    No type

    Projects

    Status

    🔥 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions