diff options
author | zeripath <art27@cantab.net> | 2022-06-04 19:30:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-04 19:30:01 +0100 |
commit | 449ea6005fb613212102126ff267f5c16f7c40b8 (patch) | |
tree | 0168970d73ad6bb3bafda9bacb70939fc114deff /routers/web/user | |
parent | d0a2c1e82bf7d6505c268bc106d2ff57be6eb7d7 (diff) | |
download | gitea-449ea6005fb613212102126ff267f5c16f7c40b8.tar.gz gitea-449ea6005fb613212102126ff267f5c16f7c40b8.zip |
Exclude Archived repos from Dashboard Milestones (#19882)
Milestones in archived repos should not be displayed on `/milestones`. Therefore
we should exclude these repositories from milestones page.
Fix #18257
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'routers/web/user')
-rw-r--r-- | routers/web/user/home.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/routers/web/user/home.go b/routers/web/user/home.go index 455761d039..297d76d4aa 100644 --- a/routers/web/user/home.go +++ b/routers/web/user/home.go @@ -170,8 +170,9 @@ func Milestones(ctx *context.Context) { Actor: ctxUser, OwnerID: ctxUser.ID, Private: true, - AllPublic: false, // Include also all public repositories of users and public organisations - AllLimited: false, // Include also all public repositories of limited organisations + AllPublic: false, // Include also all public repositories of users and public organisations + AllLimited: false, // Include also all public repositories of limited organisations + Archived: util.OptionalBoolFalse, HasMilestones: util.OptionalBoolTrue, // Just needs display repos has milestones } |