Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update URLs and IBM maintenance status (#762)
### Summary Updates all projects URLs (if their repo has moved) and sets their "IBM maintained" status using the new criteria (that a project is in Qiskit or Qiskit-Extensions orgs). I used the following script to automate this. This worked for all projects except qiskit-superstaq, which is the only project in a subdirectory. I reset that one manually. ```python import json import subprocess from ecosystem.daos import DAO dao = DAO("ecosystem/resources/") for project in dao.get_all(): # Update URLs in case they've changed reponame = "/".join(project.url.split("/")[3:5]) new_url = json.loads( subprocess.check_output( ["gh", "repo", "view", reponame, "--json", "url"] ).decode("utf8") )["url"] project.url = new_url # Update "IBM maintained" status if project.url.split("/")[3].lower() in ["qiskit-extensions", "qiskit"]: project.ibm_maintained = True else: project.ibm_maintained = False dao.write(project) ```
- Loading branch information