summaryrefslogtreecommitdiffstats
path: root/modules/structs/notifications.go
Commit message (Collapse)AuthorAgeFilesLines
* API: add html urls to notification subjects (#17178)Norwin2021-09-301-5/+7
| | | | | | | | * API: add html urls to notification subjects * add "Repository" Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Introduce NotifySubjectType (#16320)65432021-07-011-5/+19
| | | | | * Introduce NotifySubjectType * update swagger docs
* API: NotificationSubject show Issue/Pull State (#12901)65432020-09-201-4/+5
|
* [API] add endpoint to check notifications [Extend #9488] (#9595)65432020-01-141-0/+5
| | | | | | | | | | | | | | * introduce GET /notifications/new * add TEST * use Sprintf instead of path.Join * Error more verbose * return number of notifications if unreaded exist * 200 http status for available notifications
* [API] Add notification endpoint (#9488)65432020-01-091-0/+28
* [API] Add notification endpoints * add func GetNotifications(opts FindNotificationOptions) * add func (n *Notification) APIFormat() * add func (nl NotificationList) APIFormat() * add func (n *Notification) APIURL() * add func (nl NotificationList) APIFormat() * add LoadAttributes functions (loadRepo, loadIssue, loadComment, loadUser) * add func (c *Comment) APIURL() * add func (issue *Issue) GetLastComment() * add endpoint GET /notifications * add endpoint PUT /notifications * add endpoint GET /repos/{owner}/{repo}/notifications * add endpoint PUT /repos/{owner}/{repo}/notifications * add endpoint GET /notifications/threads/{id} * add endpoint PATCH /notifications/threads/{id} * Add TEST * code format * code format