diff --git a/main.go b/main.go index e17c191..8685e0c 100644 --- a/main.go +++ b/main.go @@ -337,6 +337,10 @@ func (s *service) assignNewIssues() { for title, assignee := range s.issueTitleToAssigneeMap { issue := s.newIssuesMap[title] issueNumber := issue.GetNumber() + if issueNumber == 0 { + // Issue was not created + continue + } req := &github.IssueRequest{ Assignees: &[]string{assignee}, }