fix(merge): tolerate merge_method alias + default style to merge #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/merge-style-tolerate-merge-method"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
merge_pull_requestread only thestylearg. Passing the GitHub-stylemerge_methodleftstyleempty →MergeStyle("")→ Forgejo HTTP 422, surfaced as an opaqueserver returned HTTP 422 (expected 200)— indistinguishable from a genuine branch-protection rejection. Cost a full debugging session (phantom gate hunting) for a one-word param error.Fix (
operation/pull/pull.go)merge_method/merge_styleas aliases forstyle.style→merge(the--no-ffrepo norm).invalid merge style %q: use one of merge|rebase|rebase-merge|squash) instead of a raw 422.styleno longerRequired()in the tool schema (optional, defaults to merge).Verification
go buildingolang:1.25).Closes #3