gitea/routers/api/v1/repo
6543 c97494a4f4
API: Add pull review endpoints (#11224)
* API: Added pull review read only endpoints

* Update Structs, move Conversion, Refactor

* refactor

* lint & co

* fix lint + refactor

* add new Review state, rm unessesary, refacotr loadAttributes, convert patch to diff

* add DeletePullReview

* add paggination

* draft1: Create & submit review

* fix lint

* fix lint

* impruve test

* DONT use GhostUser for loadReviewer

* expose comments_count of a PullReview

* infent GetCodeCommentsCount()

* fixes

* fix+impruve

* some nits

* Handle Ghosts 👻

* add TEST for GET apis

* complete TESTS

* add HTMLURL to PullReview responce

* code format as per @lafriks

* update swagger definition

* Update routers/api/v1/repo/pull_review.go

Co-authored-by: David Svantesson <davidsvantesson@gmail.com>

* add comments

Co-authored-by: Thomas Berger <loki@lokis-chaos.de>
Co-authored-by: David Svantesson <davidsvantesson@gmail.com>
2020-05-02 03:20:51 +03:00
..
blob.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
branch.go [API] Add branch delete (#11112) 2020-04-19 10:38:09 +08:00
collaborators.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
commits.go [API] Get a single commit via Ref (#10915) 2020-04-07 22:54:46 -04:00
file.go Fix GetContents(): Dont't ignore Executables (#11192) 2020-04-24 19:20:22 +03:00
fork.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
git_hook.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
git_ref.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
hook.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
hook_test.go API endpoint for testing webhook (#3550) 2018-04-29 14:21:33 +08:00
issue.go [API] ListIssues add filter for milestones (#10148) 2020-04-30 01:15:39 -03:00
issue_comment.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
issue_label.go Add Organization Wide Labels (#10814) 2020-04-01 01:14:46 -03:00
issue_reaction.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
issue_stopwatch.go Prevent panic in stopwatch (#10670) 2020-03-08 14:46:24 -03:00
issue_subscription.go Return issue subscription status from API subscribe (#10966) 2020-04-30 23:55:24 +01:00
issue_tracked_time.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
key.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
label.go Add Organization Wide Labels (#10814) 2020-04-01 01:14:46 -03:00
main_test.go API endpoint for testing webhook (#3550) 2018-04-29 14:21:33 +08:00
migrate.go Various fixes in login sources (#10428) 2020-02-23 13:52:05 -06:00
milestone.go Fix milestone API state parameter unhandled (#10049) 2020-01-29 08:36:32 +02:00
mirror.go Refactor api repo dir (#10048) 2020-01-29 13:55:23 +08:00
pull.go Support organization labels for PRs in API (#11135) 2020-04-20 14:10:45 +01:00
pull_review.go API: Add pull review endpoints (#11224) 2020-05-02 03:20:51 +03:00
release.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
release_attachment.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
repo.go Option to set default branch at repository creation (#10803) 2020-03-26 19:14:51 +00:00
repo_test.go Fixes #5960 - Adds API Endpoint for Repo Edit (#7006) 2019-05-30 11:09:05 -04:00
star.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
status.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
subscriber.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
tag.go [API] enable paggination for ListRepoTags (#10454) 2020-02-25 14:07:07 -05:00
topic.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
transfer.go API endpoint for repo transfer (#9947) 2020-01-31 15:49:04 +00:00
tree.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00