Skip to content

Commit 867f71c

Browse files
TimothyEarleyTimothy Earley
andauthored
feat: hide archived projects (#216)
Co-authored-by: Timothy Earley <timothy.earley@deutschebahn.com>
1 parent d431fe8 commit 867f71c

File tree

5 files changed

+11
-0
lines changed

5 files changed

+11
-0
lines changed

CONFIGURATION.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ fetchCount: 20
5959
# Show only projects with recent pipelines
6060
pipelinesOnly: false
6161

62+
# Whether to include archived projects
63+
includeArchived: false
64+
6265
# Zooms the dashboard to fill the screen with all displayed projects.
6366
# Not compatible with all browsers! See https://caniuse.com/#feat=css-zoom
6467
autoZoom: false

charts/gitlab-monitor/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ config: |
3131
"maxAge": 168,
3232
"fetchCount": 20,
3333
"pipelinesOnly": false,
34+
"includeArchived": false,
3435
"autoZoom": false,
3536
"showPipelineIds": true,
3637
"showJobs": "iconAndName",

charts/gitlab-monitor/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ config: |
3030
"maxAge": 168,
3131
"fetchCount": 20,
3232
"pipelinesOnly": false,
33+
"includeArchived": false,
3334
"autoZoom": false,
3435
"showPipelineIds": true,
3536
"showJobs": "iconAndName",

src/components/app.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@
151151
gitlabApiParams.include_subgroups = includeSubgroups
152152
}
153153
154+
const includeArchived = Config.root.includeArchived
155+
if (includeArchived === false) {
156+
gitlabApiParams.archived = "false"
157+
}
158+
154159
// Only use main level projects API if tighter scope not defined
155160
const scopeType = Config.root.projectScope
156161
// Reformat the variable as a flat list of Ids

src/config.default.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"maxAge": 168,
55
"fetchCount": 20,
66
"pipelinesOnly": false,
7+
"includeArchived": false,
78
"autoZoom": false,
89
"showPipelineIds": true,
910
"showProjectOnlyOn": [],

0 commit comments

Comments
 (0)