@on-par/factory-cli 0.9.8-next.41 → 0.9.8-next.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,7 @@ export type TriageExec = (cmd: string) => Promise<{
|
|
|
3
3
|
}>;
|
|
4
4
|
/** The queue.proposed comment naming issues skipped for an open PR (#2982); '' when none were. */
|
|
5
5
|
export declare function skippedIssuesComment(dropped: readonly number[]): string;
|
|
6
|
-
/** Normalizes the model output, then removes entries for issues with an open `<prefix>/<n>-…` PR.
|
|
6
|
+
/** Normalizes the model output, then removes entries for issues with an open `<prefix>/<n>-…` PR or an open PR whose title/body closes them by keyword.
|
|
7
7
|
* When entries survive, a `# Skipped (a PR is open): …` comment line naming the dropped issues leads the queue.
|
|
8
8
|
* A failing or malformed `gh pr list` leaves the queue unfiltered. Returns '' when nothing survives. */
|
|
9
9
|
export declare function proposeTriageQueue(output: string, ghRepo: string, eventsPath: string, exec: TriageExec): Promise<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// triage-open-prs.ts: drops issues that already own an open factory
|
|
1
|
+
// triage-open-prs.ts: drops issues that already own an open PR (factory branch or closing keyword) from the triage queue (#2981, #2983).
|
|
2
2
|
import { dropQueuedIssues, logEvent, normalizeTriageQueue, parseOpenPrIssues, resolveBranchPrefix, shellEscape, } from '@on-par/factory-core/internal';
|
|
3
3
|
/** The queue.proposed comment naming issues skipped for an open PR (#2982); '' when none were. */
|
|
4
4
|
export function skippedIssuesComment(dropped) {
|
|
@@ -6,7 +6,7 @@ export function skippedIssuesComment(dropped) {
|
|
|
6
6
|
return '';
|
|
7
7
|
return `# Skipped (a PR is open): ${dropped.map((n) => `#${n}`).join(', ')}\n`;
|
|
8
8
|
}
|
|
9
|
-
/** Normalizes the model output, then removes entries for issues with an open `<prefix>/<n>-…` PR.
|
|
9
|
+
/** Normalizes the model output, then removes entries for issues with an open `<prefix>/<n>-…` PR or an open PR whose title/body closes them by keyword.
|
|
10
10
|
* When entries survive, a `# Skipped (a PR is open): …` comment line naming the dropped issues leads the queue.
|
|
11
11
|
* A failing or malformed `gh pr list` leaves the queue unfiltered. Returns '' when nothing survives. */
|
|
12
12
|
export async function proposeTriageQueue(output, ghRepo, eventsPath, exec) {
|
|
@@ -15,7 +15,7 @@ export async function proposeTriageQueue(output, ghRepo, eventsPath, exec) {
|
|
|
15
15
|
return normalized;
|
|
16
16
|
let prJson;
|
|
17
17
|
try {
|
|
18
|
-
const { stdout } = await exec(`gh pr list --repo ${shellEscape(ghRepo)} --state open --limit 200 --json headRefName`);
|
|
18
|
+
const { stdout } = await exec(`gh pr list --repo ${shellEscape(ghRepo)} --state open --limit 200 --json headRefName,title,body,state`);
|
|
19
19
|
prJson = stdout || '[]';
|
|
20
20
|
}
|
|
21
21
|
catch (err) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triage-open-prs.js","sourceRoot":"","sources":["../../src/cli/triage-open-prs.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"triage-open-prs.js","sourceRoot":"","sources":["../../src/cli/triage-open-prs.ts"],"names":[],"mappings":"AAAA,yIAAyI;AACzI,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,GACZ,MAAM,+BAA+B,CAAC;AAIvC,kGAAkG;AAClG,MAAM,UAAU,oBAAoB,CAAC,OAA0B;IAC7D,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACpC,OAAO,6BAA6B,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;AACjF,CAAC;AAED;;yGAEyG;AACzG,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,MAAc,EACd,MAAc,EACd,UAAkB,EAClB,IAAgB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,CAAC,CAAC,oBAAoB,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC;AAC/D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@on-par/factory-cli",
|
|
3
|
-
"version": "0.9.8-next.
|
|
3
|
+
"version": "0.9.8-next.42",
|
|
4
4
|
"description": "On PAR Dev's Software Factory CLI: takes a GitHub issue through plan, build and check with AI agents, then opens a ready-for-review PR.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-agents",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"@octokit/plugin-retry": "^8.1.1",
|
|
48
48
|
"@octokit/plugin-throttling": "^11.0.5",
|
|
49
49
|
"@octokit/rest": "^22.0.0",
|
|
50
|
-
"@on-par/factory-core": "0.9.8-next.
|
|
51
|
-
"@on-par/factory-tui": "0.9.8-next.
|
|
50
|
+
"@on-par/factory-core": "0.9.8-next.42",
|
|
51
|
+
"@on-par/factory-tui": "0.9.8-next.42",
|
|
52
52
|
"commander": "^15.0.0"
|
|
53
53
|
},
|
|
54
54
|
"license": "MIT",
|