Skip to content

Instantly share code, notes, and snippets.

@mvidalgarcia
Created December 8, 2020 08:08
Show Gist options
  • Save mvidalgarcia/070352f56488b64a1b64717bf0b5082d to your computer and use it in GitHub Desktop.
Save mvidalgarcia/070352f56488b64a1b64717bf0b5082d to your computer and use it in GitHub Desktop.
# $ 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