Tools to make sure all of our repos have the same settings.
Will update the relevant settings, webhooks and branch protections for all alphagov repos tagged with the topic govuk.
Requires a GitHub personal access token, which can be generated using the GitHub UI.
Usage (can run on your Mac or within dev VM):
GITHUB_TOKEN=xyz bundle exec rake github:configure_repos
Will compare the list of currently GOVUK tagged repos on GitHub with the list of repos in devdocs (https://github.com/alphagov/govuk-developer-docs/blob/main/data/repos.yml), then prints a list of untagged and falesly tagged repos.
Requires a GitHub personal access token, which can be generated using the GitHub UI, with full repo scope permissions, otherwise private repositories might incorrectly show up as untagged.
Usage (can run on your Mac or within dev VM):
GITHUB_TOKEN=xyz bundle exec rake github:verify_repo_tags