-
-
Save lnielsen/f1c4470b1f9b7b4f08a908dae966d53a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $ git clone inveniosoftware/automation_tools | |
# $ cd automation_tools | |
# $ ipython | |
from automation_tools.repositories import GithubUtils | |
GITHUB_INVENIOSOFTWARE_URL = "https://github.com/inveniosoftware/" | |
GA_INVENIOSOFTWARE_BADGE_URL = GITHUB_INVENIOSOFTWARE_URL + "{}/workflows/CI/badge.svg" | |
inveniosoftware_repos = GithubUtils.list_organization_repositories('inveniosoftware') | |
print("| Repo | GA status |") | |
print("|----- |---------- |") | |
for repo in inveniosoftware_repos: | |
repo_url = f"{GITHUB_INVENIOSOFTWARE_URL}{repo}" | |
print(f"| [{repo}]({repo_url}) | [![]({GA_INVENIOSOFTWARE_BADGE_URL.format(repo)})]({repo_url}/actions) | ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment