Commit Graph

72 Commits (52f383381143264e93e33f991d483e63a3d9074c)

Author SHA1 Message Date
Athurg Feng 52f3833811 Add Dingtalk webhook support ()
* Add dingtalk webhook into html template

* Add Dingtalk's icon

* Insert dingtalk into repo's webhook page template

* Insert dingtalk into org's webhook page

* Add dingtalk into default webhook config

* Add locale string for add_dingtalk_hook_desc

* Update bindata

* Add dingtalk webhook form validator

* Add dingtalk hook task

* Add dingtalk hook create handler

* Add dingtalk hook edit handler

* Add dingtalk router

* Add dingtalk webhook task skeleton

* Add markdown link formatter

* Add Dingtalk ActionCard create wrapper

* Add support for dingtalk create event payload

* Add support for dingtalk delete event payload

* Add support for dingtalk fork event payload

* Add support for dingtalk push event payload

* Add support for dingtalk issue event payload

* Add support for dingtalk issue comment payload

* Add support for dingtalk pull event payload

* Add support for dingtalk release event payload
2017-09-21 14:32:48 -04:00
Unknwon 0e6a6bf880
Refactoring: remove sessionRelease()
XORM supports automatic roll back in session Close() already.
2017-06-11 03:06:36 -04:00
Unknwon ce6e8ed8fe
models: remove redundant tags for primary keys 2017-05-21 04:36:41 -04:00
Unknwon d05395fe90
Refactoring: rename modules -> pkg
Reasons to change:

1. Shorter than 'modules'
2. More generally used by other Go projects
3. Corresponds to the naming of '$GOPATH/pkg' directory
2017-04-04 19:29:59 -04:00
Unknwon 8f52ab8201
models/repo_editor: add pull request test task after commit () 2017-03-25 03:36:13 -04:00
Unknwon 2807274e2d
repo/webhook: able to retrigger delivery history () 2017-03-19 17:44:46 -04:00
Unknwon dee76e4189
models/webhook: add skip check for Release event 2017-03-11 18:44:50 -05:00
Unknwon b615d670b3
webhook: add Release event () 2017-03-11 18:41:32 -05:00
Unknwon 89cc6aa430
webhook: add issue comment event 2017-03-09 04:11:23 -05:00
Unknwon c93731339f
webhook: support Issues event ()
Also addresses .
2017-03-09 00:03:29 -05:00
Unknwon d43f5f17fd
webhook: fix push panic to organizational repository () 2017-02-28 10:28:48 -05:00
Unknwon b06f299748
webhook: add fork event 2017-02-27 22:48:18 -05:00
Unknwon f0086e66ae
webhook: able to detect delete branch or tag () 2017-02-27 22:47:21 -05:00
Unknwon 6ec859f2b0
webhook: send secret with SHA256 HMAC hex digest () 2017-02-24 12:23:19 -05:00
Unknwon 5ea0592f61
webhook: fix organizational webhook last delivery status cannot be updated 2017-02-22 22:55:28 -05:00
Unknwon 60aca9ea18
webhook: also only enable certain types ()
Add new config option '[webhook] TYPES’.
2017-02-21 20:21:25 -05:00
Unknwon bd970b8b27
webhook: only trigger specific webhook for test delivery () 2017-02-21 15:44:35 -05:00
Unknwon 2322de653c
models/webhook: fix bad query 2017-02-20 01:04:02 -05:00
Unknwon a07b1f630a
webhook: add native Discord support 2017-02-18 00:54:56 -05:00
Unknwon 127005d733
webhook: remove bad characters of Slack-type webhook for Discord () 2017-02-11 16:31:58 -05:00
Unknwon eb66060cd7
log: start using gopkg.in/clog.v1 2017-02-09 19:29:59 -05:00
Unknwon 03f7f3ee67
Some code renaming 2016-12-22 19:58:30 -05:00
Alexander Lunegov 7358e46815 Fix string format verbs () 2016-12-21 02:09:43 -05:00
Unknwon 8516dfcb6c able to sync now for mirrors
- Refactor code to use sync.UniqueQueue
- Closes 
2016-08-30 16:18:33 -07:00
Unknwon c1ecb6c60a modules/sync: add UniqueQueue 2016-08-30 15:50:30 -07:00
Kurt Madel 67fb0fe6a5 added support to set pull_request event from api () 2016-08-24 20:44:58 -07:00
Unknwon 0b273ac4d5 code cleanup 2016-08-24 16:05:56 -07:00
Unknwon 3f7f4852ef fully support of webhooks for pull request 2016-08-14 03:32:24 -07:00
Unknwon 250be011c7 Remove redundant Unix timestamp method call
Unix() already uses UTC as timezone
2016-07-23 20:24:44 +08:00
Unknwon 60110adc06 models/webhook: restrict deletion to be explicitly with repo and org ID 2016-07-17 08:33:59 +08:00
Unknwon 3d93532c87 fix can't get webhook detail of organization 2016-07-16 01:02:55 +08:00
Kim Carlbäcker d950bf68e3 Ignore Response Body for Slack Hooks () 2016-07-15 14:02:19 +08:00
Unknwon d62ab49978 retrieve webhook with repo_id
This prevents user retrieve arbitrary webhook by changing URL to
access webhook from other unauthorized repositories.
2016-07-08 13:57:09 +08:00
Unknwon ad513a20e9 Replace time.Time with Unix Timestamp (int64) 2016-03-09 19:53:30 -05:00
Unknwon ac78bae7b5 Replace uuid module with original package 2016-02-20 18:13:12 -05:00
Unknwon 297e772c20 fix payloads mixed up for webhook
When repository contains a Slack type hook,
it changes original payload content.

This patch fixes it by using a local object to store
newly created Slack payload instead of assigning
back to the same variable.
2016-02-10 15:21:39 -05:00
Kim "BKC" Carlbäcker edc414c584 Fixed Webhook URL-length Issue 2016-01-27 01:40:35 +01:00
Unknwon bf26808fb3 update README 2015-12-05 13:50:43 -05:00
Unknwon 404867f206 fix and fix 2015-12-05 13:24:13 -05:00
Unknwon f455125d4d fix 2015-11-18 21:21:47 -05:00
Unknwon 2be5837cb0 New push to base repo of base branch: retest all corresponding patches 2015-10-24 14:48:11 -04:00
Unknwon 0fbb8c8826 New push to head repo of head branch: regenerate patch and retest apply 2015-10-24 03:36:47 -04:00
Unknwon 55ddf225bb webhook APIs 2015-08-29 11:49:59 +08:00
Unknwon f509c59ac1 new create webhook event 2015-08-28 23:36:13 +08:00
Unknwon 23f42d92c9 add webhook recent deliveries 2015-08-27 23:06:14 +08:00
Unknwon 2881456421 new webhooks list UI 2015-08-26 21:45:51 +08:00
Unknwon fa298a2c30 : Realtime webhooks 2015-07-25 21:32:04 +08:00
Unknwon 82f7a01ded : X-Gogs-Event header is empty 2015-03-18 04:51:02 -04:00
Unknwon d02e45f985 better naming on 2015-02-11 12:04:01 -05:00
Unknwon 6a23252edc able to allow insecure certification of webhook for 2015-02-10 21:06:59 -05:00