summaryrefslogtreecommitdiffstats
path: root/modules/templates/helper.go
diff options
context:
space:
mode:
authorDavid Schneiderbauer <daviian@users.noreply.github.com>2017-09-21 09:43:26 +0200
committerLauris BH <lauris@nix.lv>2017-09-21 10:43:26 +0300
commit1eedd983ea0f387b6e72264b1cd195a4d3ea1253 (patch)
treed4bbb070df7df0d6f38e2f20a8baf52598623a6a /modules/templates/helper.go
parent0d80af649a50c4b9e5e4ba764399872fc92f70f2 (diff)
downloadgitea-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 'modules/templates/helper.go')
-rw-r--r--modules/templates/helper.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index e9613b5445..0d307f4e9d 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -294,7 +294,7 @@ func ActionIcon(opType models.ActionType) string {
switch opType {
case models.ActionCreateRepo, models.ActionTransferRepo:
return "repo"
- case models.ActionCommitRepo, models.ActionPushTag:
+ case models.ActionCommitRepo, models.ActionPushTag, models.ActionDeleteTag, models.ActionDeleteBranch:
return "git-commit"
case models.ActionCreateIssue:
return "issue-opened"