Skip to content

Commit 92bc240

Browse files
committed
Orchestrator: require PR for kind/feature/bug tasks in DEV phase
agent/done label without a PR now retries instead of marking complete. Comment-only completion is still accepted for investigation/docs tasks.
1 parent e5fc7d5 commit 92bc240

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/scripts/orchestrator.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,10 @@ module.exports = async ({ github, context, core }) => {
504504
task.phase = 'REVIEW';
505505
task.retries = 0;
506506
await triggerTask(task.pr, getReviewPrompt());
507+
} else if (labels.includes('kind/feature') || labels.includes('kind/bug')) {
508+
core.error(`#${task.issue}: agent/done but no PR. Retrying.`);
509+
phaseFailed = true;
507510
} else {
508-
// No PR found, treat as completed
509511
state.completed.push(task.issue);
510512
isDone = true;
511513
}

0 commit comments

Comments
 (0)