Commit 9edd38e961
Verified · cmc
Layout: unified · split
src/srht_contrib/services/git.py +5
| @@ -55,6 +55,7 @@ query UserRepositories($username: String!, $cursor: Cursor) { | ||
| 55 | 55 | repositories(cursor: $cursor) { |
| 56 | 56 | results { |
| 57 | 57 | name |
| 58 | visibility | |
| 58 | 59 | owner { |
| 59 | 60 | canonicalName |
| 60 | 61 | } |
| @@ -173,6 +174,8 @@ class GitIngestionService: | ||
| 173 | 174 | for repository in results: |
| 174 | 175 | if not isinstance(repository, dict): |
| 175 | 176 | continue |
| 177 | if repository.get("visibility") != "PUBLIC": | |
| 178 | continue | |
| 176 | 179 | name = repository.get("name") |
| 177 | 180 | repository_owner = ((repository.get("owner") or {}).get("canonicalName") or actor).strip() |
| 178 | 181 | if not name or not repository_owner: |
| @@ -259,6 +262,8 @@ class GitIngestionService: | ||
| 259 | 262 | for repository in results: |
| 260 | 263 | if not isinstance(repository, dict): |
| 261 | 264 | continue |
| 265 | if repository.get("visibility") != "PUBLIC": | |
| 266 | continue | |
| 262 | 267 | name = repository.get("name") |
| 263 | 268 | repository_owner = ((repository.get("owner") or {}).get("canonicalName") or actor).strip() |
| 264 | 269 | if not name or not repository_owner: |