Skip to content

Commit 5d00e05

Browse files
authored
Fix archived repos (#294)
* Improve consistency check - Ignore repos which are marked as archived - Allow the definition of multiple repos in a single file * archived archived repos * removed useless repos --------- Signed-off-by: Marc Schöchlin <[email protected]>
1 parent 69ae001 commit 5d00e05

18 files changed

+11
-201
lines changed

check_consistency.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ def check_repos(gh: Github) -> int:
3030
with open(os.path.join(repositories_dir, filename)) as f:
3131
yaml_data = yaml.safe_load(f)
3232
if yaml_data is not None:
33-
defined_repos.add(list(yaml_data.keys())[0])
33+
for r_name in yaml_data.keys():
34+
if not yaml_data[r_name].get("archived", False):
35+
defined_repos.add(list(yaml_data.keys())[0])
3436

3537
repos_not_on_github = defined_repos.difference(existing_repos)
3638
repos_not_defined = existing_repos.difference(defined_repos)

orgs/SovereignCloudStack/repositories/gx-scs-identity-provider.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

orgs/SovereignCloudStack/repositories/infrastructure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ infrastructure:
44
description: 'This repository should contain all automation manifests used to deploy central SCS provided infrastructure'
55
homepage: 'https://scs.community/'
66
topics: []
7-
archived: false
7+
archived: true
88
has_issues: true
99
has_projects: false
1010
has_wiki: false

orgs/SovereignCloudStack/repositories/k8s-harbor-manual.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

orgs/SovereignCloudStack/repositories/k8s-open-policy-agent.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ k8s-open-policy-agent:
55
homepage: 'https://scs.community/'
66
topics:
77
- k8s
8-
archived: false
8+
archived: true
99
has_issues: true
1010
has_projects: false
1111
has_wiki: false

orgs/SovereignCloudStack/repositories/k8s-operator-scylla.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ k8s-operator-scylla:
55
homepage: 'https://scs.community/'
66
topics:
77
- k8s
8-
archived: false
8+
archived: true
99
has_issues: true
1010
has_projects: false
1111
has_wiki: false

orgs/SovereignCloudStack/repositories/k8s-os-health-monitor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ k8s-os-health-monitor:
55
homepage: 'https://scs.community/'
66
topics:
77
- k8s
8-
archived: false
8+
archived: true
99
has_issues: true
1010
has_projects: false
1111
has_wiki: false

orgs/SovereignCloudStack/repositories/openstack-vyos-image.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

orgs/SovereignCloudStack/repositories/ort-docker.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

orgs/SovereignCloudStack/repositories/poc-gardener.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ poc-gardener:
44
description: Automatically set up SAP Gardener on SCS compliant IaaS
55
homepage: 'https://scs.community/'
66
topics: []
7-
archived: false
7+
archived: true
88
has_issues: true
99
has_projects: false
1010
has_wiki: false

0 commit comments

Comments
 (0)