[Bug] merge_pull_request returns 422 due to wrong parameter name (merge_strategy vs do) #5
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
Description:
The
merge_pull_requesttool ingitea/dev.pyreturns HTTP 422 error when attempting to merge pull requests.Expected Behavior:
PR should merge successfully when using the tool.
Actual Behavior:
Root Cause:
Gitea API expects a
doparameter (e.g.,{"do": "merge"}), but the tool is sendingmerge_strategyas the parameter name.Proposed Fix:
Update the
merge_pull_requestfunction to send{"do": "merge"}instead of{"merge_strategy": "merge"}in the request body.Affected File:
open-webui-automation/tools/gitea/dev.pySeverity:
Medium - Blocks PR merging operations.