]> source.dussan.org Git - gitea.git/commit
Complete push webhooks (#2530)
authorDavid Schneiderbauer <daviian@users.noreply.github.com>
Thu, 21 Sep 2017 07:43:26 +0000 (09:43 +0200)
committerLauris BH <lauris@nix.lv>
Thu, 21 Sep 2017 07:43:26 +0000 (10:43 +0300)
commit1eedd983ea0f387b6e72264b1cd195a4d3ea1253
treed4bbb070df7df0d6f38e2f20a8baf52598623a6a
parent0d80af649a50c4b9e5e4ba764399872fc92f70f2
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>
integrations/gitea-repositories-meta/user2/repo1.git/refs/tags/v1.1 [new file with mode: 0644]
models/action.go
models/action_test.go
models/unit_tests.go
models/update.go
modules/templates/helper.go
options/locale/locale_en-US.ini
templates/user/dashboard/feeds.tmpl