fix(orchestrator): fail session with guidance when PR branch is missing (#466)

This commit is contained in:
Carlos Florêncio
2026-03-26 19:35:17 +00:00
committed by GitHub
parent 0074cfbaa9
commit 7da6550093
34 changed files with 1476 additions and 521 deletions
+3 -1
View File
@@ -251,7 +251,9 @@ func (c *Controller) httpTriggerReviewWatch(ctx *gin.Context) {
ctx.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
return
}
ctx.JSON(http.StatusOK, gin.H{"new_prs": len(newPRs), "prs": newPRs})
// Clean up tasks for merged/closed PRs that haven't been started.
cleaned, _ := c.service.CleanupMergedReviewTasks(ctx.Request.Context(), watch)
ctx.JSON(http.StatusOK, gin.H{"new_prs": len(newPRs), "prs": newPRs, "cleaned": cleaned})
}
func (c *Controller) httpTriggerAllReviewChecks(ctx *gin.Context) {