We need a script (management command) to check (weekly?) that the id and url match for all the projects, for validation, as decided here. This is something we need for the deployed instance of the backend.
Action Items
[ ] create script
[ ] setup GHA or something else to trigger it weekly
[ ] document how it works
Resources/Instructions
Github repo names can change (done by the project) but not the id
the script should use the github_primary_repo_id to verify the repo_id
create a new issue for any mismatch and include a report in the issue content
this command retrieves the repo_id for the repo_urlcurl -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/civictechindex/CTI-website-frontend
Dependency
218
Overview
We need a script (management command) to check (weekly?) that the id and url match for all the projects, for validation, as decided here. This is something we need for the deployed instance of the backend.
Action Items
Resources/Instructions
Github
repo names
can change (done by the project) but not theid
the script should use the
github_primary_repo_id
to verify therepo_id
create a new issue for any mismatch and include a report in the issue content
this command retrieves the
repo_id
for therepo_url
curl -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/civictechindex/CTI-website-frontend