auth-app.js icon indicating copy to clipboard operation
auth-app.js copied to clipboard

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

Open gr2m opened this issue 1 year ago • 1 comments
trafficstars

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

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

gr2m avatar Mar 05 '24 19:03 gr2m