Batch-config your repo's merge settings
$ npm install --global mergeconf
$ mergeconf --help
Usage
mergeconf [user] [token]
Options
--merge, -m Merge commits
--squash, -s Squash commits
--rebase, -r Rebase commits
You pass in your GitHub user name, a personal access token and options for which type of commit to allow. You must pass at least one option and the ones that aren't set will be treated as false
.
Before using the app, generate a token with repository permissions.
The token is saved with conf so you only need to pass it once. Using another token will overwrite the old one.
The following will set all my repos to only allow squash commits for merges.
mergeconf sotojuan mytoken --squash
The following will set all my repos to only allow squash and rebase commits for merges.
mergeconf sotojuan mytoken --squash --rebase
Not too bad!
MIT © Juan Soto