Skip to content

Commit 3c7cb4c

Browse files
committed
1 parent f32b963 commit 3c7cb4c

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

services/release/notes.go

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -304,20 +304,11 @@ func collectContributors(ctx context.Context, repoID int64, prs []*issues_model.
304304
seenNew := container.Set[int64]{}
305305

306306
for _, pr := range prs {
307-
if pr.Issue == nil || pr.Issue.Poster == nil {
308-
continue
309-
}
310-
311-
posterID := pr.Issue.PosterID
312-
if posterID == 0 {
313-
posterID = pr.Issue.Poster.ID
314-
}
315-
if posterID == 0 {
316-
continue
317-
}
307+
poster := pr.Issue.Poster
308+
posterID := poster.ID
318309

319310
if !seenContributors.Contains(posterID) {
320-
contributors = append(contributors, pr.Issue.Poster)
311+
contributors = append(contributors, poster)
321312
seenContributors.Add(posterID)
322313
}
323314

0 commit comments

Comments
 (0)