mysociety / theyworkforyou

Keeping tabs on the UK's parliaments and assemblies
http://www.theyworkforyou.com/
Other
224 stars 50 forks source link

Add force option to mirror action #1801

Closed ajparsons closed 1 week ago

ajparsons commented 1 week ago

A tidy up for my github based workflow. This PR adds a manual option to the mirror action to force push a branch back to git.mysociety.org. The default is still that git.mysociety.org takes priority.

This works as expected in the twfy-votes repo.

Reasoning:

Because git.mysociety.org is the primary, if I rewrite the history in a branch, to get that into git.mysociety.org I need to open up a local theyworkforyou, pull from one, and force push to the other. This moves that into a few buttons on github - while not being an automatic process.