0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-12 00:13:04 +01:00
gitea/routers/api/v1/repo
6543 37e10d4543 [API] Add Reactions (#9220)
* reject reactions wich ar not allowed

* dont duble check CreateReaction now throw ErrForbiddenIssueReaction

* add /repos/{owner}/{repo}/issues/comments/{id}/reactions endpoint

* add Find Functions

* fix some swagger stuff + add issue reaction endpoints + GET ReactionList now use FindReactions...

* explicite Issue Only Reaction for FindReactionsOptions with "-1" commentID

* load issue; load user ...

* return error again

* swagger def canged after LINT

* check if user has ben loaded

* add Tests

* better way of comparing results

* add suggestion

* use different issue for test
(dont interfear with integration test)

* test dont compare Location on timeCompare

* TEST: add forbidden dubble add

* add comments in code to explain

* add settings.UI.ReactionsMap
so if !setting.UI.ReactionsMap[opts.Type] works
2019-12-07 17:04:19 -05:00
..
blob.go
branch.go Update branch API endpoint to show effective branch protection. (#9031) 2019-11-16 19:39:18 +00:00
collaborators.go
commits.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
file.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
fork.go
git_hook.go
git_ref.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
hook_test.go
hook.go
issue_comment.go
issue_label.go
issue_reaction.go [API] Add Reactions (#9220) 2019-12-07 17:04:19 -05:00
issue_subscription.go Refactor Issues Subscription (#8738) 2019-11-20 22:50:54 +08:00
issue_tracked_time.go
issue.go
key.go
label.go
main_test.go
milestone.go
pull.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
release_attachment.go
release.go
repo_test.go
repo.go Hide credentials when submitting migration (#9102) 2019-11-22 06:37:37 +00:00
star.go
status.go
subscriber.go
tag.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
topic.go
tree.go