Route spec PR review feedback to rework-spec instead of rework-pr
Publish Image / publish (push) Successful in 23s
Publish Image / publish (push) Successful in 23s
When a review requests changes on a docs/ branch (architect PR), trigger the rework-spec task type instead of rework-pr. This re-runs the architect persona to fix the design docs based on review feedback. - Add rework-spec to Coder template task_type options and lightweight stages - Detect architect PRs via docs/ branch prefix in pr-rework handler Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
f495ea391f
commit
81aee2f7fc
@@ -26,9 +26,11 @@ export function prRework(config: Config, queue: TaskQueue) {
|
||||
|
||||
let taskType: string | null = null;
|
||||
let giteaToken: string;
|
||||
const branch = event.pull_request.head.ref;
|
||||
const isArchitectPR = branch.startsWith("docs/");
|
||||
|
||||
if (reviewState === "request_changes") {
|
||||
taskType = "rework-pr";
|
||||
taskType = isArchitectPR ? "rework-spec" : "rework-pr";
|
||||
giteaToken = config.giteaDevToken;
|
||||
} else if (reviewState === "approved") {
|
||||
taskType = "test";
|
||||
|
||||
Reference in New Issue
Block a user