Add missing MergePullRequestOption parameters for head_commit_id and merge_when_checks_succeed (#624)

This PR adds the missing parameters for MergePullRequestOption `head_commit_id` and `merge_when_checks_succed` like in the current Gitea API.
Resolves #623

Signed-off-by: Johannes Lauffer <johnwalkerx@mailbox.org>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/624
Co-authored-by: JohnWalkerx <johnwalkerx@mailbox.org>
Co-committed-by: JohnWalkerx <johnwalkerx@mailbox.org>
This commit is contained in:
JohnWalkerx 2023-07-15 02:53:03 +00:00 committed by John Olheiser
parent 970776d1c1
commit 315cf7aac8
1 changed files with 2 additions and 0 deletions

View File

@ -231,6 +231,8 @@ type MergePullRequestOption struct {
Message string `json:"MergeMessageField"`
DeleteBranchAfterMerge bool `json:"delete_branch_after_merge"`
ForceMerge bool `json:"force_merge"`
HeadCommitId string `json:"head_commit_id"`
MergeWhenChecksSucceed bool `json:"merge_when_checks_succeed"`
}
// Validate the MergePullRequestOption struct