Fixed a wrong issue number being used for "Implement Plan" links at times (#404)
This commit is contained in:
committed by
pullfrog[bot]
parent
887f37236d
commit
a0af59b52a
@@ -141471,7 +141471,7 @@ async function reportProgress(ctx, { body }) {
|
||||
return { body, action: "skipped" };
|
||||
}
|
||||
const existingCommentId = ctx.toolState.progressCommentId;
|
||||
const issueNumber = ctx.toolState.issueNumber ?? ctx.payload.event.issue_number;
|
||||
const issueNumber = ctx.payload.event.issue_number ?? ctx.toolState.issueNumber;
|
||||
const isPlanMode = ctx.toolState.selectedMode === "Plan";
|
||||
if (existingCommentId) {
|
||||
const customParts = isPlanMode && issueNumber !== void 0 ? [buildImplementPlanLink(ctx.repo.owner, ctx.repo.name, issueNumber, existingCommentId)] : void 0;
|
||||
|
||||
Reference in New Issue
Block a user