Skip to content

Commit 58ffea2

Browse files
committed
Exclude Archived repos from Dashboard Milestones
Milestones in archived repos should not be displayed on `/milestones`. Therefore we should exclude these repositories from milestones page. Fix go-gitea#18257 Signed-off-by: Andrew Thornton <[email protected]>
1 parent 694441f commit 58ffea2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

routers/web/user/home.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ func Milestones(ctx *context.Context) {
169169
Actor: ctxUser,
170170
OwnerID: ctxUser.ID,
171171
Private: true,
172-
AllPublic: false, // Include also all public repositories of users and public organisations
173-
AllLimited: false, // Include also all public repositories of limited organisations
172+
AllPublic: false, // Include also all public repositories of users and public organisations
173+
AllLimited: false, // Include also all public repositories of limited organisations
174+
Archived: util.OptionalBoolFalse,
174175
HasMilestones: util.OptionalBoolTrue, // Just needs display repos has milestones
175176
}
176177

0 commit comments

Comments
 (0)