fix: Include installation ID in headers (#510)

This commit is contained in:
Brace Sproul 2025-07-23 16:47:27 -07:00 • committed by GitHub
parent ec0c93ef94
commit 11872f9fb4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,6 +6,7 @@ import { GitHubApp } from "../../utils/github-app.js";
import { Webhooks } from "@octokit/webhooks";
import { createLangGraphClient } from "../../utils/langgraph-client.js";
import {
GITHUB_INSTALLATION_ID,
GITHUB_INSTALLATION_NAME,
GITHUB_INSTALLATION_TOKEN_COOKIE,
GITHUB_USER_ID_HEADER,
@ -146,6 +147,7 @@ webhooks.on("issues.labeled", async ({ payload }) => {
[GITHUB_INSTALLATION_NAME]: issueData.owner,
[GITHUB_USER_ID_HEADER]: issueData.userId.toString(),
[GITHUB_USER_LOGIN_HEADER]: issueData.userLogin,
[GITHUB_INSTALLATION_ID]: installationId.toString(),
},
});