diff --git a/gitea_info.py b/gitea_info.py index c0526f3..32094bc 100644 --- a/gitea_info.py +++ b/gitea_info.py @@ -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: diff --git a/last_commit_info.py b/last_commit_info.py index f67e382..1ce437b 100644 --- a/last_commit_info.py +++ b/last_commit_info.py @@ -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: