Skip to content

Commit

Permalink
Do not assign issue if it wasn't created
Browse files Browse the repository at this point in the history
  • Loading branch information
sidsprasad committed Jan 23, 2024
1 parent b9b65dc commit 399886a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
}
Expand Down

0 comments on commit 399886a

Please sign in to comment.