Commit graph

16 commits

Author SHA1 Message Date
J0Nes90
e11a4f7f3b Add GetUserByID (#513)
Co-authored-by: Jochen Hunz <j.hunz@anchorpoint.app>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/513
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: J0Nes90 <j0nes90@noreply.gitea.io>
Co-committed-by: J0Nes90 <j0nes90@noreply.gitea.io>
2021-04-05 11:23:50 +08:00
6543
6b6fdd91ce UrlEscape Function Arguments used in UrlPath (#273)
close #271

* [x] add check if user/repo-name is empty
* [x] use net/url for links to encode

Co-authored-by: Andrew Thornton <art27@cantab.net>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/273
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-03-22 04:20:32 +08:00
6543
688ee1978e All Function return http responce (#416)
Add Docs on how to deal with this breaking change

doResponse should return responce in all cases, to prosses things manualy if wanted

helper func return http response

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/416
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-09-14 02:37:09 +00:00
Lunny Xiao
e41e9ea72c Move all structs from code.gitea.io/gitea/modules/structs to local to resolve the dependencies problem (#188) 2019-10-13 01:34:01 +00:00
Lunny Xiao
38803cbe75 Refactor codes to remove structs and depend them on code.gitea.io/gitea/modules/structs (#171)
* refactor codes to remove structs and depend them on code.gitea.io/gitea/modules/structs

* fix testing
2019-05-11 18:38:52 +03:00
Lanre Adelowo
e4effe4df2 add IsAdmin to user (#151) 2019-03-03 18:34:16 +00:00
Jonas Franz
9c719de11f Add GetMyUserInfo (#111)
Signed-off-by: Jonas Franz <info@jonasfranz.software>
2018-06-24 14:13:26 +03:00
kolaente
1c8d12f79a Added user locale setting (#104) 2018-05-01 14:15:19 +03:00
Vlad Temian
a184f2d334 Run go fmt for the entire project (#85) 2018-01-09 02:26:05 +02:00
Ethan Koenig
1da52cf95f Updates to swagger documentation (#77) 2017-11-12 11:10:33 +02:00
Antoine GIRARD
d2f87fd3f9 Add swagger descriptions and needed structs (#53)
* Add swagger descriptions and needed structs

* Remove missed TODO comment
2017-04-30 23:33:16 +08:00
Martin Hebnes Pedersen
76837c0ea4 Backward compatibility (username vs. login)
Reintroduce the username field for user object on JSON marshal to fix backward
compatibility. Fixes Drone 0.4 compatibility issues.
2016-12-16 01:08:43 +01:00
Kim "BKC" Carlbäcker
cc453bfe27 Merge pull request #9 from go-gitea/fix/github-compliance
GitHub-API compliance
2016-11-10 12:33:06 +01:00
Lunny Xiao
c9135ef778 fix most of all the lint errors 2016-11-10 17:44:00 +08:00
Kim "BKC" Carlbäcker
66fbec9354 GitHub-API compliance 2016-11-09 17:08:29 +01:00
Thomas Boerger
4218c36205 Moved source files into subfolder 2016-11-07 11:26:36 -02:00
Renamed from user.go (Browse further)