Commit Graph

23 Commits (b22be7f594401d7bd81196750456ce52185bd391)

Author SHA1 Message Date
Lunny Xiao 9f31f3aa8a
Add an abstract json layout to make it's easier to change json library ()
* Add an abstract json layout to make it's easier to change json library

* Fix import

* Fix import sequence

* Fix blank lines

* Fix blank lines
a1012112796 17731e05ff
fix double 'push tag' action feed ()
Signed-off-by: a1012112796 <1012112796@qq.com>
zeripath f0e15250b9
Migrate to use jsoniter instead of encoding/json ()
* Migrate to use jsoniter

* fix tests

* update gitea.com/go-chi/binding

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
a1012112796 ac701637b4
Add dismiss review feature ()
* Add dismiss review feature

refs:
    https://github.blog/2016-10-12-dismissing-reviews-on-pull-requests/
    https://developer.github.com/v3/pulls/reviews/#dismiss-a-review-for-a-pull-request

* change modal ui and error message

* Add unDismissReview api

Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Jimmy Praet e6acce649b
Send notifications for mentions in pulls, issues, (code-)comments ()
Fixes : mention handling extracted from email notification code
Fixes : add notification for mentions in pull request code comments
Fixes : Not receiving any emails with setting "Only Email on Mention"
Lunny Xiao ab22ab4a37
Refactor push update ()
* Refactor Push update

* Remove the push_test since the function has been removed.

* Use default branch setting instead master
Lunny Xiao f070249df4
Fix typo ()
Lunny Xiao 4df2ed29f2
Refactor: Move PushUpdateOptions ()
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
mrsdizzie 25ddf77b51
Fix panic when adding long comment ()
Previous PR  causes out of bounds panic by working on wrong string.
赵智超 5995326d51
Add size limit for content of comment on action ui ()
Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: mrsdizzie <info@mrsdizzie.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
赵智超 1f12dc8e88
Add action feed for new release ()
* Add action feed for new release

Signed-off-by: a1012112796 <1012112796@qq.com>

* fix lint

* Apply suggestions from code review

* Add ReleaseID to the action table
* Remove error message
* Fold the attachments download list

* remove attchment download list

* simplify code

* fix create release from existing tag

* simplify ui

* translation change

* fix test

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
6543 06cd3e03a2 [refactor] notify remove unused praram ()
Lunny Xiao 99d869fa63
Move push commits from models to modules/repository ()
* Move push commits from models to modules/repository

* fix test

* fix test

* fix test

* fix test

* fix test

Co-authored-by: zeripath <art27@cantab.net>
mrsdizzie 1df701fd1a Add ActionCommentPull action ()
* Add ActionCommentPull action

Adds ActionCommentPull action to distinguish between a comment on an
issue and on a pull request

* Update modules/notification/action/action.go

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Lunny Xiao 67b316a954 Refactor comment ()
* Refactor comment

* fix test

* improve code
Lunny Xiao 8ab35eefc4 Move mirror sync actions to notification ()
* Move mirror sync actions to notification

* fix lint
Lunny Xiao d7ac9727bb Move merge actions to notification ()
* Move merge actions to notification

* Add missing mail notification
Lunny Xiao 21ae9838e0
Move transfer repository and rename repository on a service package and start action notification ()
* move transfer repository and rename repository on a service package and start action notification

* remove unused codes

* fix lint

* fix bugs

* fix test

* fix test

* fix test

* fix lint

* update go mod and sum
John Olheiser 06a8504c78 Update dashboard context for PR reviews ()
* Update dashboard context for PR reviews

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Update options/locale/locale_en-US.ini

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

* Only append head action if it has content or is approval/rejection

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Update options/locale/locale_en-US.ini

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Lunny Xiao dad67cae54
Refactor pull request review ()
* refactor submit review

* remove unnecessary code

* remove unused comment

* fix lint

* remove duplicated actions

* remove duplicated actions

* fix typo

* fix comment content
Lunny Xiao 273a24f226
Move notifywatchers from models to notification ()
Lunny Xiao 016a5d0438 Move some actions to notification/action ()
* Move some actions to notification/action

* Fix test

* fix test
Lunny Xiao 491887d441 Move actions to notification ()