From 5bd728fe4e6e0a63a927db3a683e6e726f7bf41d Mon Sep 17 00:00:00 2001 From: Robin Olsen <129996395+Telikz@users.noreply.github.com> Date: Thu, 19 Mar 2026 19:49:17 +0100 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- cmd/pm/tasks/gitTask.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/pm/tasks/gitTask.go b/cmd/pm/tasks/gitTask.go index 3ce4f54..c19a329 100644 --- a/cmd/pm/tasks/gitTask.go +++ b/cmd/pm/tasks/gitTask.go @@ -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")