File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -564,6 +564,18 @@ func buildIssueOverview(ctx *context.Context, unitType unit.Type) {
564564 // Add repository pointers to Issues.
565565 // ----------------------------------
566566
567+ // Remove repositories that should not be shown,
568+ // which are repositories that have no issues and are not selected by the user.
569+ selectedReposMap := make (map [int64 ]struct {}, len (selectedRepoIDs ))
570+ for _ , repoID := range selectedRepoIDs {
571+ selectedReposMap [repoID ] = struct {}{}
572+ }
573+ for k , v := range issueCountByRepo {
574+ if _ , ok := selectedReposMap [k ]; ! ok && v == 0 {
575+ delete (issueCountByRepo , k )
576+ }
577+ }
578+
567579 // showReposMap maps repository IDs to their Repository pointers.
568580 showReposMap , err := loadRepoByIDs (ctxUser , issueCountByRepo , unitType )
569581 if err != nil {
You can’t perform that action at this time.
0 commit comments