Commit Graph

11 Commits (fd35f56e87abf53b24f2a7239222b7d0a244c3d2)

Author SHA1 Message Date
6543 d453533beb
[Refactor] Move APIFormat functions into convert package ()
* 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>
6543 0b3aaa6196 [API] Add "before" query to ListIssueComments and ListRepoIssue… ()
* 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>
6543 e88d67b774 [API] add comments endpoint for single comment ()
* add GET /repos/{owner}/{repo}/issues/comments/{id}
 and complete error list for swagger in other func

* add repo check
zeripath 055f6d2296 Fix "data race" in testlogger ()
* Fix data race in testlogger

* Update git_helper_for_declarative_test.go
Lunny Xiao 34eee25bd4
Move sdk structs to modules/structs ()
* move sdk structs to moduels/structs

* fix tests

* fix fmt

* fix swagger

* fix vendor
B-OnTheGo e47df0b301 Enforce token on api routes [fixed critical security issue ] ()
Ethan Koenig c3b6383b3a Fix comment API paths ()
Ethan Koenig dd758ad8dc More integration tests for comment API ()
Ethan Koenig f1adaef458 Less verbose integration tests ()
* Helper functions for intergration test boilerplate
Ethan Koenig f64c232953 Improve integration test helper functions ()
Set request headers in helper functions, and new helper for requests with string-formatted URLs
Ethan Koenig 255adc40ae Don't show non-comments in comments API ()