From 18400385c5a73af9313c2c3e4421bc74bbae7cf4 Mon Sep 17 00:00:00 2001 From: Nicholas Molnar <65710+neekolas@users.noreply.github.com> Date: Wed, 22 Apr 2026 12:07:16 -0700 Subject: [PATCH] Update to use new code-factory-issue skill --- src/workflows/steps/create-task.test.ts | 3 ++- src/workflows/steps/create-task.ts | 1 + src/workflows/steps/template-inputs.ts | 10 +++++++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/workflows/steps/create-task.test.ts b/src/workflows/steps/create-task.test.ts index b2c176b..da727ea 100644 --- a/src/workflows/steps/create-task.test.ts +++ b/src/workflows/steps/create-task.test.ts @@ -363,8 +363,9 @@ describe("runCreateTask", () => { "REPO_OWNER: acme", "REPO_NAME: repo", "ISSUE_NUMBER: 42", + "REQUESTER: alice", "", - "Use the /coder-task skill to resolve the issue", + "Use the /code-factory-issue skill to resolve the issue", "", ].join("\n"), ai_provider: "codex", diff --git a/src/workflows/steps/create-task.ts b/src/workflows/steps/create-task.ts index e23a189..7c1f45f 100644 --- a/src/workflows/steps/create-task.ts +++ b/src/workflows/steps/create-task.ts @@ -82,6 +82,7 @@ export async function runCreateTask(ctx: RunCreateTaskContext): Promise { buildTemplateInputs({ repository: event.repository, issue: { number: event.issue.number, url: event.issue.url }, + requester: { login: event.requester.login }, settings: repoConfig.settings, }), ), diff --git a/src/workflows/steps/template-inputs.ts b/src/workflows/steps/template-inputs.ts index 61741ba..b47e630 100644 --- a/src/workflows/steps/template-inputs.ts +++ b/src/workflows/steps/template-inputs.ts @@ -25,11 +25,12 @@ export type TemplateInputs = z.infer; export interface BuildTemplateInputsParams { repository: { owner: string; name: string }; issue: { number: number; url: string }; + requester: { login: string }; settings: RepoConfigSettings; } /** - * Compose the `ai_prompt` block consumed by the `/coder-task` skill. The + * Compose the `ai_prompt` block consumed by the `/code-factory-issue` skill. The * fields are fixed key/value lines followed by the instruction to invoke the * skill, separated by a blank line. Trailing newline is intentional. */ @@ -38,13 +39,15 @@ function buildAiPrompt(params: { repoOwner: string; repoName: string; issueNumber: number; + requester: string; }): string { return `ISSUE_URL: ${params.issueUrl} REPO_OWNER: ${params.repoOwner} REPO_NAME: ${params.repoName} ISSUE_NUMBER: ${params.issueNumber} +REQUESTER: ${params.requester} -Use the /coder-task skill to resolve the issue +Use the /code-factory-issue skill to resolve the issue `; } @@ -55,7 +58,7 @@ Use the /coder-task skill to resolve the issue export function buildTemplateInputs( params: BuildTemplateInputsParams, ): TemplateInputs { - const { repository, issue, settings } = params; + const { repository, issue, requester, settings } = params; const volumes = settings.sandbox.volumes; return { repo_url: `https://github.com/${repository.owner}/${repository.name}`, @@ -65,6 +68,7 @@ export function buildTemplateInputs( repoOwner: repository.owner, repoName: repository.name, issueNumber: issue.number, + requester: requester.login, }), ai_provider: settings.harness.provider, ...(volumes.length > 0 ? { extra_volumes: volumes } : {}),