fix sticky comment variable name (#226)
* fix sticky comment variable name * fix condition
This commit is contained in:
parent
459b56e54d
commit
73012199e4
@ -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",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user