diff options
author | David Schneiderbauer <daviian@users.noreply.github.com> | 2017-09-21 09:43:26 +0200 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2017-09-21 10:43:26 +0300 |
commit | 1eedd983ea0f387b6e72264b1cd195a4d3ea1253 (patch) | |
tree | d4bbb070df7df0d6f38e2f20a8baf52598623a6a /templates/user/dashboard/feeds.tmpl | |
parent | 0d80af649a50c4b9e5e4ba764399872fc92f70f2 (diff) | |
download | gitea-1eedd983ea0f387b6e72264b1cd195a4d3ea1253.tar.gz gitea-1eedd983ea0f387b6e72264b1cd195a4d3ea1253.zip |
Complete push webhooks (#2530)
* implemented missing 'delete' push webhooks
moreover created ActionDeleteBranch and ActionDeleteTag
* add CommitRepoAction tests for tag/branch creation/deletion
* fixed error where push webhook not called if is new branch or tag
removed unnecessary code
* moved prepare unit test environment into separate method to be used across unit tests
* add missing if clause in pushUpdate
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
Diffstat (limited to 'templates/user/dashboard/feeds.tmpl')
-rw-r--r-- | templates/user/dashboard/feeds.tmpl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl index 855a79786a..e94ef4d6b8 100644 --- a/templates/user/dashboard/feeds.tmpl +++ b/templates/user/dashboard/feeds.tmpl @@ -43,6 +43,12 @@ {{else if eq .GetOpType 15}} {{ $index := index .GetIssueInfos 0}} {{$.i18n.Tr "action.reopen_pull_request" .GetRepoLink $index .ShortRepoPath | Str2html}} + {{else if eq .GetOpType 16}} + {{ $index := index .GetIssueInfos 0}} + {{$.i18n.Tr "action.delete_tag" .GetRepoLink .GetBranch .ShortRepoPath | Str2html}} + {{else if eq .GetOpType 17}} + {{ $index := index .GetIssueInfos 0}} + {{$.i18n.Tr "action.delete_branch" .GetRepoLink .GetBranch .ShortRepoPath | Str2html}} {{end}} </p> {{if eq .GetOpType 5}} |