Skip to content

Commit

Permalink
Obsolete services (#37)
Browse files Browse the repository at this point in the history
Obsolete services

Add services 'content-delivery-network' and 'data-admin-service' to excluded repos

Reviewed-by: Vladimir Vshivkov
  • Loading branch information
YustinaKvr authored Oct 5, 2023
1 parent a84d178 commit 8849684
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion gitea_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,12 @@ def get_repos(org, gitea_token):
print(f"JSON decode: an error occurred while trying to decode JSON: {e}")
break

exclude_repos = ["content-delivery-network", "data-admin-service"]
for repo in repos_dict:
repos.append(repo["name"])
if repo["name"] in exclude_repos:
continue
else:
repos.append(repo["name"])

link_header = repos_resp.headers.get("Link")
if link_header is None or "rel=\"next\"" not in link_header:
Expand Down
2 changes: 1 addition & 1 deletion last_commit_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def get_last_commit_url(github_repo, path):

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

if repo.name in exclude_repos:
Expand Down

0 comments on commit 8849684

Please sign in to comment.