forgejo/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
branch.go [API] Add branch delete (#11112) 2020-04-19 10:38:09 +08:00
collaborators.go
commits.go
file.go Fix GetContents(): Dont't ignore Executables (#11192) 2020-04-24 19:20:22 +03:00
fork.go
git_hook.go
git_ref.go
hook.go
hook_test.go
issue.go [API] ListIssues add filter for milestones (#10148) 2020-04-30 01:15:39 -03:00
issue_comment.go
issue_label.go
issue_reaction.go
issue_stopwatch.go
issue_subscription.go Return issue subscription status from API subscribe (#10966) 2020-04-30 23:55:24 +01:00
issue_tracked_time.go
key.go
label.go
main_test.go
migrate.go
milestone.go
mirror.go
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
release_attachment.go
repo.go
repo_test.go
star.go
status.go
subscriber.go
tag.go
topic.go
transfer.go
tree.go