mirror of
https://github.com/openclaw/clawhub.git
synced 2026-08-14 08:52:21 +00:00
fix(github): keep scanner appeal issues open
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user