Skip to content

Commit ed56c3b

Browse files
committed
skip contributors with posterID = 0
1 parent 5337b76 commit ed56c3b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

services/release/notes.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,11 @@ func collectContributors(ctx context.Context, repoID int64, prs []*issues_model.
301301
poster := pr.Issue.Poster
302302
posterID := poster.ID
303303

304+
if posterID == 0 {
305+
// Migrated PRs may not have a linked local user (PosterID == 0). Skip them for now.
306+
continue
307+
}
308+
304309
if !seenContributors.Contains(posterID) {
305310
contributors = append(contributors, poster)
306311
seenContributors.Add(posterID)

0 commit comments

Comments
 (0)