Skip to content

Instantly share code, notes, and snippets.

@lnielsen
Forked from mvidalgarcia/inveniosofware_ga.py
Created December 8, 2020 16:27
Show Gist options
  • Save lnielsen/f1c4470b1f9b7b4f08a908dae966d53a to your computer and use it in GitHub Desktop.
Save lnielsen/f1c4470b1f9b7b4f08a908dae966d53a 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