Check the [GitHub API](https://docs.github.com/en/rest/repos/rules?apiVersion=2022-11-28#create-a-repository-ruleset): <img width="541" alt="Image" src="https://github.com/user-attachments/assets/790b21c1-f7e2-4e4b-8241-cbc1bd36fff8" /> The merge_queue.merge_method only supports the upper case: `MERGE, SQUASH, REBASE` However, in the code the enum is in lower case, which easily mislead users to pass in the enum in lowercase. I have tested from my side, lower case will cause GitHub server return an error directly: https://github.com/google/go-github/blob/v71.0.0/github/rules.go#L106 Note: I understand for other type of rulesets, it requires lowercase again which is an issue of GitHub API. They should have made case consistent 🤦 :  go-github should still make things clearer: add uppercase enum and comments about when to use lowercase and not.