auto-labeling

This commit is contained in:
David Blass
2025-12-09 17:02:57 -05:00
parent 7ffd7297c3
commit 305fc9b0dd
7 changed files with 137 additions and 87 deletions
+6 -2
View File
@@ -11,7 +11,7 @@ import { agentsManifest } from "./external.ts";
import { ensureProgressCommentUpdated } from "./mcp/comment.ts";
import { createMcpConfigs } from "./mcp/config.ts";
import { startMcpHttpServer } from "./mcp/server.ts";
import { modes } from "./modes.ts";
import { getModes, modes } from "./modes.ts";
import packageJson from "./package.json" with { type: "json" };
import { fetchRepoSettings, fetchWorkflowRunInfo } from "./utils/api.ts";
import { log } from "./utils/cli.ts";
@@ -300,7 +300,11 @@ async function startMcpServer(ctx: MainContext): Promise<void> {
log.info(`📝 Using pre-created progress comment: ${workflowRunInfo.progressCommentId}`);
}
}
const allModes = [...modes, ...(ctx.payload.modes || [])];
const allModes = [
...getModes({ disableProgressComment: ctx.payload.disableProgressComment }),
...(ctx.payload.modes || []),
];
const { url, close } = await startMcpHttpServer({
payload: ctx.payload,
modes: allModes,