6543
1061851989
[Refactor] Move APIFormat functions into convert package ( #12856 )
* USER APIFormat -> ToUser
* Migrate more and mark APIFormat deprecated
* models.Comment APIFormat() -> convert.ToComment
* models.Release APIFormat() -> convert.ToRelease
* models.Attachments APIFormat() -> convert.ToReleaseAttachments
* models.CommitStatus APIFormat() -> convert.ToCommitStatus
* finish migration to convert.ToUser
* Move Test
* Imprufe Test
* fix test
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years ago
6543
f47135208a
[API] Add "before" query to ListIssueComments and ListRepoIssue… ( #9685 )
* add "before" query to ListIssueComments and ListRepoIssueComments
* Add TEST
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
5 years ago
6543
1965f27496
[API] add comments endpoint for single comment ( #9494 )
* add GET /repos/{owner}/{repo}/issues/comments/{id}
and complete error list for swagger in other func
* add repo check
5 years ago
zeripath
38dea67a7e
Fix "data race" in testlogger ( #9159 )
* Fix data race in testlogger
* Update git_helper_for_declarative_test.go
5 years ago
Lunny Xiao
45d0e05e14
Move sdk structs to modules/structs ( #6905 )
* move sdk structs to moduels/structs
* fix tests
* fix fmt
* fix swagger
* fix vendor
6 years ago
B-OnTheGo
e827cc6ca9
Enforce token on api routes [fixed critical security issue #4357 ] ( #4840 )
6 years ago
Ethan Koenig
55598f5421
Fix comment API paths ( #2813 )
7 years ago
Ethan Koenig
7a3e6c872d
More integration tests for comment API ( #2156 )
8 years ago
Ethan Koenig
1c10f454eb
Less verbose integration tests ( #2123 )
* Helper functions for intergration test boilerplate
8 years ago
Ethan Koenig
2775b8b420
Improve integration test helper functions ( #2049 )
Set request headers in helper functions, and new helper for requests with string-formatted URLs
8 years ago
Ethan Koenig
5518912d1d
Don't show non-comments in comments API ( #2001 )
8 years ago