go-gitea / go-sdk

Gitea: Golang SDK, moved to https://gitea.com/gitea/go-sdk
http://gitea.io
MIT License
29 stars 53 forks source link

MergePullRequest update #137

Open xabufr opened 5 years ago

xabufr commented 5 years ago

It seems that MergePullRequest is out of date for gitea 1.6. We have this: https://github.com/go-gitea/go-sdk/blob/master/gitea/pull.go#L136 But gitea need additional parameters to merge: https://github.com/go-gitea/gitea/blob/v1.6.4/modules/auth/repo_form.go#L362 Minimalist valid requests looks like:

{
    "do": "merge"
}