Skip to content

Commit 8849684

Browse files
authored
Obsolete services (#37)
Obsolete services Add services 'content-delivery-network' and 'data-admin-service' to excluded repos Reviewed-by: Vladimir Vshivkov
1 parent a84d178 commit 8849684

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

gitea_info.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,12 @@ def get_repos(org, gitea_token):
107107
print(f"JSON decode: an error occurred while trying to decode JSON: {e}")
108108
break
109109

110+
exclude_repos = ["content-delivery-network", "data-admin-service"]
110111
for repo in repos_dict:
111-
repos.append(repo["name"])
112+
if repo["name"] in exclude_repos:
113+
continue
114+
else:
115+
repos.append(repo["name"])
112116

113117
link_header = repos_resp.headers.get("Link")
114118
if link_header is None or "rel=\"next\"" not in link_header:

last_commit_info.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def get_last_commit_url(github_repo, path):
7777

7878
def get_last_commit(org, conn, cur, doctype, string, table_name):
7979
print(f"Gathering last commit info for {string}...")
80-
exclude_repos = ["docsportal", "doc-exports", "docs_on_docs", ".github", "presentations", "sandbox", "security", "template"]
80+
exclude_repos = ["docsportal", "doc-exports", "docs_on_docs", ".github", "presentations", "sandbox", "security", "template", "content-delivery-network", "data-admin-service"]
8181
for repo in org.get_repos():
8282

8383
if repo.name in exclude_repos:

0 commit comments

Comments
 (0)