Open selfhoster1312 opened 2 months ago
It apparently can be done in a single line of bash using the official gh
client with an API token with the proper permissions:
gh repo list yunohost-apps --archived -q '.[].name' --json name --limit 500 | while read -r repo; do echo "gh api repos/yunohost-apps/${repo}/transfer -f new_owner=Yunohost-Archive"; done
This command will not actually do it but "echo" the actual command like a dry run. Remove the echo to run it for real.
Would really stick to just archiving the repo ... There should be a flag like -archive:true
to remove those from search result ... and anyway github search is imho not reliable and you can't really do advanced searches as you woud with grep
on local clones
It's org:yunohost-apps NOT is:archived QUERY
which is not exactly easy to remember or type. If there is a setting on the org to enable it by default it would be nice:
As for Github search it sure isn't the best, but for plaintext matches it's fine.
It's really annoying that Github code search in Yunohost-apps org brings up all of the archived apps, which is not a good metrics to evaluate how Yunohost helpers are actually used in the wild. Maybe there is an option in the org to disable search in archived apps? Otherwise, would it be possible to create a Yunohost-archive organization where archived apps go to rest in peace?