You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expanding Body Parameters > rules > pull_request shows allowed_merge_methods as the first property:
allowed_merge_methods array of strings
When merging pull requests, you can allow any combination of merge commits, squashing, or rebasing. At least one option must be enabled.
Expected
This should be allowed in the Rest API types, right?
index.ts:21:9 - error TS2353: Object literal may only specify known properties, and 'allowed_merge_methods' does not exist in type '{ dismiss_stale_reviews_on_push: boolean; require_code_owner_review: boolean; require_last_push_approval: boolean; required_approving_review_count: number; required_review_thread_resolution: boolean; }'.
21 allowed_merge_methods: ["squash"],
~~~~~~~~~~~~~~~~~~~~~
The text was updated successfully, but these errors were encountered:
Schema Inaccuracy
"POST /repos/{owner}/{repo}/rulesets"
'srules
>{ type: "pull-request" }
'sparameters
define what can be given for the PR rule parameters in a ruleset. They're documented on https://docs.github.com/en/rest/repos/rules?apiVersion=2022-11-28#create-a-repository-ruleset--fine-grained-access-tokens.Expanding Body Parameters >
rules
>pull_request
showsallowed_merge_methods
as the first property:Expected
This should be allowed in the Rest API types, right?
Reproduction Steps
In short, https://github.com/JoshuaKGoldberg/repros/blob/github-rulesets-post-api-allowed_merge_methods/index.ts:
The text was updated successfully, but these errors were encountered: