Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
from github_rest_api import Organization, Repository, RepositoryTypeorg = Organization(token="", owner="legendu-net")
org<github_rest_api.github.Organization at 0x7f437431c830>repos = org.get_repositories(RepositoryType.PUBLIC)repos_docker = [
repo
for repo in repos
if repo["name"].startswith("docker-")
]repos_docker[0]["full_name"]'legendu-net/docker-rstudio'token = "ghp_xxx"for repo in repos_docker:
Repository(token=token, repo=repo["full_name"]).transfer(new_owner="dclong")