gitea/routers/api/v1
qwerty287 7db2f110ad
Add API to get issue/pull comments and events (timeline) (#17403)
* Add API to get issue/pull comments and events (timeline)
Adds an API to get both comments and events in one endpoint with all required data.
Closes go-gitea/gitea#13250

* Fix swagger

* Don't show code comments (use review api instead)

* fmt

* Fix comment

* Time -> TrackedTime

* Use var directly

* Add logger

* Fix lint

* Fix test

* Add comments

* fmt

* [test] get issue directly by ID

* Update test

* Add description for changed refs

* Fix build issues + lint

* Fix build

* Use string enums

* Update swagger

* Support `page` and `limit` params

* fmt + swagger

* Use global slices

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-01-01 22:12:25 +08:00
..
admin Ensure complexity, minlength and ispwned are checked on password setting (#18005) 2021-12-17 10:03:39 +08:00
misc Move keys to models/asymkey (#17917) 2021-12-10 16:14:24 +08:00
notify Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
org Add missing X-Total-Count and fix some related bugs (#17968) 2021-12-15 13:39:34 +08:00
repo Add API to get issue/pull comments and events (timeline) (#17403) 2022-01-01 22:12:25 +08:00
settings Make mirror feature more configurable (#16957) 2021-09-07 17:49:36 +02:00
swagger Add API to get issue/pull comments and events (timeline) (#17403) 2022-01-01 22:12:25 +08:00
user Refactor HTTP request context (#17979) 2021-12-15 14:59:57 +08:00
utils Use a standalone struct name for Organization (#17632) 2021-11-19 19:41:40 +08:00
api.go Add API to get issue/pull comments and events (timeline) (#17403) 2022-01-01 22:12:25 +08:00