forgejo/routers
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 Move some repositories' operations to a standalone service package (#8557) 2019-10-26 14:54:11 +08:00
api/v1 Add API for Issue set Subscription (#8729) 2019-11-02 23:27:49 +08:00
dev Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
org Fix errors in create org UI regarding team access permission. (#8506) 2019-10-14 19:20:42 +01:00
private Allow Protected Branches to Whitelist Deploy Keys (#8483) 2019-10-21 09:21:45 +01:00
repo Prevent upload (overwrite) of lfs locked file (#8769) 2019-11-02 15:37:05 +08:00
routes Add basic repository lfs management (#7199) 2019-10-28 18:31:55 +00:00
user Fix template error on account page (#8562) 2019-10-19 10:01:33 +01:00
utils Slack webhook channel name cannot be empty or just contain an hashtag (#4786) 2018-09-10 10:31:08 -04:00
home.go Use AppSubUrl for more redirections (#8647) 2019-10-23 22:04:22 +01:00
init.go Move webhook to a standalone package under modules (#8747) 2019-11-01 22:51:22 +00:00
install.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
metrics.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
swagger_json.go Swagger.v1.json template (#3572) 2018-07-28 03:19:01 +03:00