mirror of
https://github.com/RGBCube/GitHub2Forgejo
synced 2025-05-31 10:48:11 +00:00
Fix filter for removing private repos when no github token is specified
This commit is contained in:
parent
41dd9542f7
commit
98b44f8995
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ def main [] {
|
|||
http get $"($forgejo_url)/api/v1/user/repos"
|
||||
-H [ Authorization $"token ($forgejo_token)" ]
|
||||
| filter { get mirror }
|
||||
| filter { ($github_token != "") and not $in.private }
|
||||
| filter { if $github_token == "" { not $in.private } else { true } }
|
||||
)
|
||||
|
||||
let forgejo_not_on_github = ($forgejo_mirrored_repos | filter { not ($in.name in $github_repo_names) })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue