GitHub disallow merge and rebase commits for multiple repositories - Stack Overflow
This is a similar question to github "Automatically delete head branches" for multiple repositories. In that case, the gh
command can be used in a loop to configure the option across multiple repos. The gh
cli has these options for the repo edit
subcommand:
--enable-merge-commit Enable merging pull requests via merge commit
--enable-rebase-merge Enable merging pull requests via rebase
--enable-squash-merge Enable merging pull requests via squashed commit
Is it possible to disallow merge-commit
and rebase-merge
programmatically? Or to put it another way, is it possible to only allow squash-merge
?
REST API (or other API) would also be acceptable.
This is a similar question to github "Automatically delete head branches" for multiple repositories. In that case, the gh
command can be used in a loop to configure the option across multiple repos. The gh
cli has these options for the repo edit
subcommand:
--enable-merge-commit Enable merging pull requests via merge commit
--enable-rebase-merge Enable merging pull requests via rebase
--enable-squash-merge Enable merging pull requests via squashed commit
Is it possible to disallow merge-commit
and rebase-merge
programmatically? Or to put it another way, is it possible to only allow squash-merge
?
REST API (or other API) would also be acceptable.
Share Improve this question asked yesterday davejagodadavejagoda 2,5281 gold badge21 silver badges29 bronze badges1 Answer
Reset to default 0When in doubt, RTFM: https://cli.github.com/manual/gh_repo_edit
gh repo edit <username>/<reponame> \
--enable-merge-commit=false \
--enable-rebase-merge=false \
--enable-squash-merge=true
The =true on the last line is optional but included to be more specific.
- 虚拟现实究竟离现实还有多远?
- 外媒称谷歌正筹划自主开发安卓手机
- 抓住“苹果”的尾巴,国产平板的突围之路
- browser cache - window.fetch not using cached data from <img src= - Stack Overflow
- c++ - Level-Order Traversal of a Binary Tree Without Recursion? - Stack Overflow
- swift - How do I know how many times a thread context switch happens on an xcode Instruments? - Stack Overflow
- AWS CloudFront occasionally does not send request to custom origin server - Stack Overflow
- c - How to properly implement HKDF Expand with openssl EVP_KDF - Stack Overflow
- OpenAI Assistant: File Search tool stops working when I enable custom function calling - Stack Overflow
- How do I configure nginx for proxy_pass and ssl redirect? - Stack Overflow
- installation - Upgrading to Inno Setup v6 - SignTool=sha1 no longer works - Stack Overflow
- ms access - Execute VBScipt on local machine, triggered from remote desktop - Stack Overflow
- reactjs - input forms not alligning right inside a React app - Stack Overflow
- mouseevent - Need help for the Entitlements, Privacy Manifest, and Info.plist for System-Wide Mouse Click Monitoring and Typing
- python - ReCaptcha v3 works locally but not in deployment - Stack Overflow
- node.js - Response body is null even though server is sending a non null response - Stack Overflow
- lean - Lean4 good way to solve `imports are out of date` - Stack Overflow