fix sticky comment variable name (#226)

* fix sticky comment variable name

* fix condition
This commit is contained in:
Ashwin Bhat
2025-07-03 09:18:28 -07:00
committed by GitHub
parent 459b56e54d
commit 73012199e4
2 changed files with 2 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ export function parseGitHubContext(): ParsedGitHubContext {
directPrompt: process.env.DIRECT_PROMPT ?? "", directPrompt: process.env.DIRECT_PROMPT ?? "",
baseBranch: process.env.BASE_BRANCH, baseBranch: process.env.BASE_BRANCH,
branchPrefix: process.env.BRANCH_PREFIX ?? "claude/", branchPrefix: process.env.BRANCH_PREFIX ?? "claude/",
useStickyComment: process.env.STICKY_COMMENT === "true", useStickyComment: process.env.USE_STICKY_COMMENT === "true",
}, },
}; };

View File

@@ -29,7 +29,7 @@ export async function createInitialComment(
if ( if (
context.inputs.useStickyComment && context.inputs.useStickyComment &&
context.isPR && context.isPR &&
!isPullRequestEvent(context) isPullRequestEvent(context)
) { ) {
const comments = await octokit.rest.issues.listComments({ const comments = await octokit.rest.issues.listComments({
owner, owner,