Skip to content

Latest commit

 

History

History

github

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

GOV.UK GitHub Config

Tools to make sure all of our repos have the same settings.

Tasks

rake github:configure_repos

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

rake github:verify_repo_tags

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