Update cmd/pm/tasks/codingTask.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Robin Olsen
2026-03-04 17:32:37 +01:00
committed by GitHub
parent 817dbc57b7
commit 077cbc96e8

View File

@@ -186,6 +186,9 @@ func (t *CodingTask) Validate(ctx context.Context) ValidationFeedback {
return expect.ValidationFeedback
} else if issue.Status != models.StatusClosed {
expect.Fail("Issue should be set to Closed once the work is completed")
} else {
expect.Assert(t.setupIssue.Status == models.StatusClosed,
"The original setup issue should be set to Closed once the work is completed")
}
return expect.Complete()