Marcin Lulek
9c532486a2
webhook: quote URL variables to prevent url errors with special chars like # in pr title.
2019-02-14 00:21:50 +01:00
Marcin Kuzminski
fbf51b7e76
events: updated logging for ignored events.
2019-01-18 13:32:26 +01:00
Marcin Kuzminski
a36dd33b3c
webhook: updated docs/examples.
2019-01-08 18:54:20 +01:00
Marcin Kuzminski
bd1a9c8201
docs: updated copyrights to 2019
2019-01-02 18:13:27 +01:00
Marcin Kuzminski
838d11c6cb
integrations: allow PUT method for webhook integration.
2018-12-19 15:13:35 +01:00
Marcin Kuzminski
6ff0f9072b
integrations: organized templates a bit more.
2018-11-09 13:28:45 +01:00
Marcin Kuzminski
eba80cd8dd
integrations: use all caps template names.
2018-10-10 09:36:18 +02:00
Marcin Kuzminski
1f61d09d20
integrations: implement retry to HTTP[S] calls for integrations.
2018-10-02 21:38:43 +02:00
Marcin Kuzminski
1cb99da048
webhook: handle ${commit_id} variable independent from ${branch}.
...
- in some cases we want non-branched individual commits to be posted.
2018-10-02 21:35:05 +02:00
Marcin Kuzminski
9033601562
logging: use lazy parameter evaluation in log calls.
2018-09-13 17:41:35 +02:00
Marcin Kuzminski
f51b02a7e4
requests: added a default timeout for operation calling the endpoint url.
...
Otherwise we can have a hanging calls for very long time.
2018-08-10 15:19:36 +02:00
Daniel Dourvaris
b64e9a326f
integrations: added branch_head into URL variables. This allow triggering more explicit
...
build on webhooks/jenkins. branch_head is the last commit of pushed branch so the build
system doesn't have to figure it out itself.
- in often updated projects without this explicit specified it could happen that
the pushed braanch could change when CI systems fetches the code.
2018-07-16 14:14:11 +02:00
Marcin Kuzminski
953db86f19
hipchat: added a case for SVN commits to trunk
2018-02-28 14:30:35 +01:00
Marcin Kuzminski
2192c94acb
slack: added a case for SVN commits to trunk
2018-02-28 13:39:12 +01:00
Daniel Dourvaris
f98e2cb96f
integrations: added safe renderers with detailed traceback information.
2018-02-28 13:38:40 +01:00
Daniel Dourvaris
d2d10452c8
integrations: show no commits for email integration
2018-02-28 12:31:55 +01:00
Daniel Dourvaris
130b6c6c5d
integrations: use a common logic for parsing the commits branches inside the integrations that require it.
...
There was 3 duplicated parts on each integration which now uses a small class with helper to unify the code.
2018-02-28 12:31:32 +01:00
Marcin Kuzminski
407c0ea407
pull-request-events: expose pr title and uid for commits inside.
...
- used mostly for jenkins integration functions
2018-02-16 19:22:21 +01:00
Marcin Kuzminski
113e02f1d9
webhook: abstract webhook handler to base for easier re-usage.
2018-02-16 13:05:42 +01:00
Marcin Kuzminski
cba0f3b144
webhook: use textarea and format url vars better for webhook integration.
...
- also share the url vars with CI integrations
- allow using hidden help on codemirror widget
2018-02-16 12:13:37 +01:00
Marcin Kuzminski
24d2eece3a
integrations: added explanation into webhook based vars
...
- expose event names into the webhook calls.
2018-02-16 11:10:17 +01:00
Marcin Kuzminski
0fdbc4a78f
events: expose shadow repo build url.
2018-02-15 23:24:23 +01:00
Marcin Kuzminski
55c58a9500
integrations: webhook handle response errors and show response for easier debugging.
2018-02-15 23:23:58 +01:00
Marcin Kuzminski
5fbf01cea3
integrations: expose some common methods for web based calls of integrations.
2018-02-15 22:06:50 +01:00
Marcin Kuzminski
aa948e38b3
integrations: extract get_auth to common shared code.
2018-02-15 20:21:24 +01:00
Marcin Kuzminski
a60aed108e
integrations: use classmethod for icon extraction for easier code readability.
2018-02-16 01:22:52 +01:00
Marcin Kuzminski
a73ab53409
webhook: fixed extra variable replacement.
2018-02-06 16:35:46 +01:00
Marcin Kuzminski
00b45c1fa7
release: update copyright year to 2018
2018-01-19 17:13:16 +01:00
Marcin Kuzminski
87fecd1bf7
integrations: parse pushed tags, and lightweight tags for git.
...
- now aggregated as 'tags' key
- handles the case for email/webhook integrations
2017-12-03 22:37:36 +01:00
Marcin Kuzminski
b816475595
integrations: email, fix plural/singular case and no pushed branches case.
...
- for git there could be a situation when we push to no branch.
2017-12-03 22:36:02 +01:00
Marcin Kuzminski
674be24514
integrations: use orderedDict in all integrations for settings.
2017-12-03 22:35:29 +01:00
Marcin Kuzminski
a924ecfd60
webhook: execute via celery for async.
2017-11-30 14:39:26 +01:00
Marcin Kuzminski
6bbab12fcc
celery: celery 4.X support. Fixes #4169
...
- update tasks
- enabled celerybeat to function
- check and cleanup code for 4.X
2017-11-16 19:26:53 +01:00
Marcin Kuzminski
40e74de7a2
slack: expose the FULL message instead of title.
...
Because slack uses it's own trim, we should avoid sending trimmed data and let users see the whole set.
2017-11-09 19:03:12 +01:00
Marcin Kuzminski
4718f3cec9
integrations: expose EE integrations as dummy objects to show
...
what EE edition have.
2017-09-28 18:04:53 +02:00
Marcin Kuzminski
d35f866e04
webhook: add possibility to specify username and password during a call.
2017-09-28 18:22:57 +02:00
Marcin Kuzminski
929184f386
webhook: improve spelling and help text.
2017-09-28 14:24:43 +02:00
Marcin Kuzminski
d42acbacb7
integrations: webhook, allow to set a custom header. Fixes #5384
2017-09-12 00:44:23 +02:00
Marcin Kuzminski
ab16b87482
http: ported old depracated retry format for http client.
2017-07-26 12:39:31 +02:00
Marcin Kuzminski
2f81e258a7
webhook: enable support of extra repo variables as replacement in template url.
2017-05-29 23:17:17 +02:00
Marcin Kuzminski
3262bcc634
integrations: expose actor user_id, and username in webhook integration templates args.
...
ref #5287
2017-04-28 20:05:15 +02:00
Marcin Kuzminski
bab90b0598
slack-integration: added number of commits inside the message.
2017-03-02 12:05:09 +01:00
Marcin Kuzminski
4392d7803f
slack: updated slack integration to use the attachements for nicer formatting.
2017-02-24 14:24:19 +01:00
Marcin Kuzminski
664c4da7a6
webhook: add possibility to use POST or GET methods for calling webhooks.
2017-02-01 12:07:21 +01:00
Marcin Kuzminski
fcc027c282
license: updated copyright year to 2017
2017-01-02 09:30:39 +01:00
Marcin Kuzminski
39879f0dff
webhooks: added variables into the call URL. Fixes #4211
2016-10-06 23:20:55 +02:00
Marcin Kuzminski
0a0255a92d
integrations: sync slack/hipchat formatting
2016-10-05 12:55:42 +02:00
Marcin Kuzminski
759562b614
logging: remove bad logging on slack/hipchat.
2016-10-05 12:13:08 +02:00
Daniel Dourvaris
cee3c740e0
hipchat: escape user entered data to avoid xss/formatting problems
2016-10-06 15:38:49 +03:00
Marcin Kuzminski
f6410691d6
integrations: use consistent formatting of user in slack.
2016-10-04 23:12:00 +02:00