Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Robin Olsen
2026-03-19 19:49:17 +01:00
committed by GitHub
parent fbbb3dc5c6
commit 5bd728fe4e

View File

@@ -123,6 +123,10 @@ func (t *GitTask) Validate(ctx context.Context) ValidationFeedback {
if err != nil {
return expect.Fatal("Could not fetch issue")
}
if issue == nil {
expect.Fail("Issue could not be found. It may have been deleted; please recreate it and try again.")
return expect.ValidationFeedback
}
expect.Equal(issue.Assignee, "Me", "Issue Assignee")