Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Preserve headed secondary issue topics

pulse-triage[bot]1f3cc0fe37fb
diff --git a/.github/scripts/issue-version-triage.cjs b/.github/scripts/issue-version-triage.cjs
index 1c9a8215ed..5ffb84f5e3 100644
--- a/.github/scripts/issue-version-triage.cjs
+++ b/.github/scripts/issue-version-triage.cjs
@@ -17,10 +17,13 @@ function escapeRegExp(value) {
return String(value || "").replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
}
-function extractSectionValue(body, heading) {
+function extractSectionValue(body, heading, followingHeadings = []) {
if (!body) return null;
+ const boundary = followingHeadings.length
+ ? followingHeadings.map(escapeRegExp).join("|")
+ : "[^\\n]+";
const pattern = new RegExp(
- `^#+\\s*${escapeRegExp(heading)}\\s*$\\n+([\\s\\S]*?)(?=^#+\\s+|$)`,
+ `^#+\\s*${escapeRegExp(heading)}\\s*$\\n+([\\s\\S]*?)(?=^#+\\s*(?:${boundary})\\s*$|$)`,
"im"
);
const match = body.match(pattern);
@@ -40,7 +43,12 @@ function stripHTMLComments(value) {
}
function classifyAdditionalActionableTopics(body) {
- const value = extractSectionValue(body, "Additional actionable topics");
+ const value = extractSectionValue(body, "Additional actionable topics", [
+ "Pulse version",
+ "Additional context",
+ "Logs, screenshots, or diagnostics",
+ "Confirmations",
+ ]);
if (value === null) return null;
const normalized = stripHTMLComments(value)
diff --git a/.github/scripts/issue-version-triage.test.cjs b/.github/scripts/issue-version-triage.test.cjs
index 6e061172b4..d86b8f094d 100644
--- a/.github/scripts/issue-version-triage.test.cjs
+++ b/.github/scripts/issue-version-triage.test.cjs
@@ -199,6 +199,19 @@ test("additional topic classification is explicit and fail-quiet for legacy form
),
true
);
+ assert.equal(
+ classifyAdditionalActionableTopics(
+ [
+ "### Additional actionable topics",
+ "### 2. Proxmox VE Agent Install Command",
+ "The generated command should expose its security controls.",
+ "",
+ "### Pulse version",
+ "v6.4.1",
+ ].join("\n")
+ ),
+ true
+ );
});
test("every actionable issue form exposes the decomposition signal", () => {