Open quantonganh opened 5 years ago
I think give a body param to a GET
request is not a normal usage. But I have tested tea pulls
, see https://github.com/go-gitea/tea, it works.
@lunny Have you tried tea pulls
with a repo which has no open pull requests? https://github.com/go-gitea/tea/issues/17
https://github.com/go-gitea/go-sdk/blob/7d954d775498ad54b89860eb587f9692f68a1875/gitea/pull.go#L77
How does this work?
https://github.com/go-gitea/go-sdk/blob/7d954d775498ad54b89860eb587f9692f68a1875/gitea/gitea.go#L109
https://github.com/go-gitea/go-sdk/blob/7d954d775498ad54b89860eb587f9692f68a1875/gitea/gitea.go#L73
https://github.com/go-gitea/go-sdk/blob/7d954d775498ad54b89860eb587f9692f68a1875/gitea/gitea.go#L55
You passed body as a JSON to a GET request and expect it will be converted to a query string?