go-sdk
go-sdk copied to clipboard
Gitea: Golang SDK, moved to https://gitea.com/gitea/go-sdk
Use the new url instead of the deprecated one. The edit url was wrong anyway.
I used wrong url for edit and delete a team in PR #176 This PR fixes these mistakes.
Remove secret fields field from hook JSON structures. Issue: https://github.com/go-gitea/gitea/issues/3901 Connected to PR: https://github.com/go-gitea/gitea/pull/6430 Original Gogs Issue: https://github.com/gogs/gogs/issues/3692 This is a breaking change.
AccessToken returned from API can include JWT as content, and sha1 hash of the content for backward compatibility. during transition period, the api can accept old and new sha1, and...
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?
I just tried on 1.7.4 and if I call `GetMyUserInfo` `IsAdmin` is always `false`... even if I'm really an admin ![Screen Shot 2019-03-15 at 10 53 12](https://user-images.githubusercontent.com/474302/54405132-8ea90080-4710-11e9-8244-7941059dcd8f.png) _Originally posted by...
Hi, I'm a noob with Go, can you verify and merge this if it's OK ? (I'm not sure about response format, which is just empty - content-length: 0) (I've...