I’m wondering if anyone has any good – and hopefully programmatic means – of updating repositories default PR merge mechanism to use “Rebase and Merge”. This is currently only available to be set per repository. On Github, I currently have ~400 repositories which I am looking to change, and could do with being able to do this in an automated means.
Has anyone ever done this before, and/or got any suggestions on how to do this which isn’t manually? In reading about the github CLI 1.0 release, I’m wondering if
gh api might help here? If so, any examples welcome.