Skip to content

[Example] List repositories (list_repos.py) #210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
TimidRobot opened this issue Jun 17, 2024 · 0 comments
Closed

[Example] List repositories (list_repos.py) #210

TimidRobot opened this issue Jun 17, 2024 · 0 comments
Assignees
Labels
💻 aspect: code Concerns the software code in the repository 🛠 goal: fix Bug fix 🟩 priority: low Low priority and doesn't need to be rushed 🔒 staff only Restricted to CC staff members 🏁 status: ready for work Ready for work

Comments

@TimidRobot
Copy link
Member

Description

List repositories

list_repos.py:

#!/usr/bin/env python3
# Standard library
import os

# Third-party
from github import Github

GITHUB_TOKEN = os.environ["ADMIN_GITHUB_TOKEN"]

github_client = Github(GITHUB_TOKEN)
cc = github_client.get_organization("creativecommons")
repos = []
for repo in cc.get_repos():
    repos.append(repo.name)
repos.sort()
for repo in repos:
    print(repo)
@TimidRobot TimidRobot added 🟧 priority: high Stalls work on the project or its dependents 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work 🛠 goal: fix Bug fix 💻 aspect: code Concerns the software code in the repository 🟩 priority: low Low priority and doesn't need to be rushed 🔒 staff only Restricted to CC staff members 🏁 status: ready for work Ready for work and removed 🟧 priority: high Stalls work on the project or its dependents 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work labels Jun 17, 2024
@TimidRobot TimidRobot self-assigned this Jun 17, 2024
@TimidRobot TimidRobot removed this from TimidRobot Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 aspect: code Concerns the software code in the repository 🛠 goal: fix Bug fix 🟩 priority: low Low priority and doesn't need to be rushed 🔒 staff only Restricted to CC staff members 🏁 status: ready for work Ready for work
Projects
None yet
Development

No branches or pull requests

1 participant