0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-26 17:34:11 -05:00
forgejo/routers/api/v1
6543 5a187f4bcc Add API for Issue set Subscription (#8729)
* add issue subscriber API

* subscribers return []user.APIFormat

* add comments

* more meaningfull description

* without "reqToken()" api works ...
 * should be still secure beause ctx.user has to be there or nothing will hapen

* FIX: getIssueWatchers() get only aktive suscriber

* add return avter error on right position

* Revert "FIX: getIssueWatchers() get only aktive suscriber"

This reverts commit 5eca929185.

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

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>

* test go linter again

* update swagger

* GetIssueWatchers -> GetIssueSubscribers

part one

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>

* GetIssueWatchers -> GetIssueSubscribers
part two

* Revert "test go linter again"

This reverts commit bab1235622.

* change description for unsubscribe too

* golangci-lint timeout avter 5min

* move issueSubscription to seperate file

* dont create black entitys

* use IsWatching until refactoring

* Update License Info

* better swagger description

* Update .golangci.yml

because functions moved from issue.go to issue_subscription.go

* add IssueWatchList type

* batch tasks

* use e Engien

* add error handling

* error should be the last type when returning multiple items

* short version

* reurn empy UserList instead of nil
2019-11-02 23:27:49 +08:00
..
admin Password Complexity Checks (#6230) 2019-10-14 16:24:26 +01:00
convert Hide some user information via API if user have no enough permission (#8655) 2019-10-24 10:52:17 +08:00
misc Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631) 2019-10-16 14:42:42 +01:00
org API endpoint for searching teams. (#8108) 2019-10-01 13:32:28 +08:00
repo Add API for Issue set Subscription (#8729) 2019-11-02 23:27:49 +08:00
swagger Add API endpoint for accessing repo topics (#7963) 2019-09-03 23:46:24 +08:00
user Fix 500 when getting user as unauthenticated user (#8653) 2019-10-24 09:18:41 +08:00
utils Implement webhook branch filter (#7791) 2019-09-09 08:48:21 +03:00
api.go Add API for Issue set Subscription (#8729) 2019-11-02 23:27:49 +08:00