From 12ed89dabd930a089b0d139ad9185af9fdedb000 Mon Sep 17 00:00:00 2001 From: shakilurrehman21 Date: Sat, 28 Nov 2026 17:15:22 +0530 Subject: [PATCH] Fix JavaScript SyntaxError: add missing async in GitHub App webhook handler --- .../authenticating-as-a-github-app-installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app-installation.md b/content/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app-installation.md index 207ca3da59fe..d58d394fee6f 100644 --- a/content/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app-installation.md +++ b/content/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app-installation.md @@ -129,7 +129,7 @@ The Octokit.js SDK also passes a pre-authenticated `octokit` instance to webhook 1. Use an `app.webhooks.*` method to handle webhook events. For more information, see [the Octokit.js README's Webhooks section](https://github.com/octokit/octokit.js#webhooks). For example, to create a comment on an issue when the issue is opened: ```javascript - app.webhooks.on("issues.opened", ({ octokit, payload }) => { + app.webhooks.on("issues.opened", async ({ octokit, payload }) => { await octokit.request("POST /repos/{owner}/{repo}/issues/{issue_number}/comments", { owner: payload.repository.owner.login, repo: payload.repository.name,