summaryrefslogtreecommitdiff
path: root/src/srht_contrib/services
diff options
context:
space:
mode:
Diffstat (limited to 'src/srht_contrib/services')
-rw-r--r--src/srht_contrib/services/git.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/srht_contrib/services/git.py b/src/srht_contrib/services/git.py
index 9bd9848..7d5360b 100644
--- a/src/srht_contrib/services/git.py
+++ b/src/srht_contrib/services/git.py
@@ -55,6 +55,7 @@ query UserRepositories($username: String!, $cursor: Cursor) {
repositories(cursor: $cursor) {
results {
name
+ visibility
owner {
canonicalName
}
@@ -173,6 +174,8 @@ class GitIngestionService:
for repository in results:
if not isinstance(repository, dict):
continue
+ if repository.get("visibility") != "PUBLIC":
+ continue
name = repository.get("name")
repository_owner = ((repository.get("owner") or {}).get("canonicalName") or actor).strip()
if not name or not repository_owner:
@@ -259,6 +262,8 @@ class GitIngestionService:
for repository in results:
if not isinstance(repository, dict):
continue
+ if repository.get("visibility") != "PUBLIC":
+ continue
name = repository.get("name")
repository_owner = ((repository.get("owner") or {}).get("canonicalName") or actor).strip()
if not name or not repository_owner: