fix(github): keep scanner appeal issues open

This commit is contained in:
Vincent Koc
2026-05-02 22:50:09 -07:00
parent f84c894e4e
commit 063ee210a7
2 changed files with 3 additions and 10 deletions
@@ -78,7 +78,7 @@ export const rescanGuidanceComment = [
"- Skill: `clawhub skill rescan <slug>`",
"- Plugin/package: `clawhub package rescan <name>`",
"",
"If the content or metadata changed, publish the fixed version first, then request the rescan for the latest release. I'm closing this issue after posting this guidance. If you're still having trouble after rescanning, please reopen this issue with the ClawHub URL, version, and latest scan result.",
"If the content or metadata changed, publish the fixed version first, then request the rescan for the latest release. This issue is staying open so you can reply with the ClawHub URL, version, and latest scan result if the flag remains or the rescan path is blocked.",
].join("\n");
function normalizeLabel(label) {
@@ -253,10 +253,6 @@ export function planCommentForLabeledIssue(issue) {
body: rescanGuidanceComment,
bodySha256: commentHash(rescanGuidanceComment),
},
{
type: "close",
stateReason: "not_planned",
},
],
};
}
@@ -182,13 +182,10 @@ describe("clawhub rescan auto-response classifier", () => {
body: rescanGuidanceComment,
bodySha256: expect.any(String),
},
{
type: "close",
stateReason: "not_planned",
},
],
});
expect(rescanGuidanceComment).toContain("reopen this issue");
expect(rescanGuidanceComment).toContain("This issue is staying open");
expect(rescanGuidanceComment).not.toContain("reopen this issue");
});
it("does not plan comments without the guidance label", () => {