Commit graph

95 commits

Author SHA1 Message Date
Marcin Kuzminski
74e96ea4b4 comments: added new events for comment editing to handle them in integrations. 2020-07-13 11:18:28 +02:00
Marcin Kuzminski
324544678c events: added support for pull-request-comment and commit-comment events.
- allows chopts like actions on commits
- re organized events and code cleanups
2020-04-17 22:08:42 +02:00
Marcin Kuzminski
fe96e16646 code: update copyrights to 2020 2020-04-16 00:34:52 +02:00
Daniel Dourvaris
dbac62326d webhelpers: replaced paginate library with custom lib 2019-11-21 20:37:17 +01:00
Daniel Dourvaris
4057ada739 webhelpers: port most of the items from webhelpers to webhelpers2
- webhelpers are deprecated and py2 only
2019-11-21 15:48:12 +01:00
Marcin Kuzminski
387e40f55b menu: expose artifacts count into menu 2019-10-09 14:10:22 +02:00
Marcin Kuzminski
cc0ae374fd integrations: fixed view for integrations on repo. 2019-06-07 11:08:17 +02:00
Marcin Kuzminski
8bfe7506a0 integrations: fixed missing template variable for fork reference checks. 2019-04-02 17:17:11 +02:00
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
f33e0ddc9f core: change from homebrew plugin system into pyramid machinery.
- it's faster to load
- homebrew system was never used as intended
- it's cleaner CE/EE code this way
2018-11-25 11:56:29 +01:00
Marcin Kuzminski
fcc18a6200 application: re-organize imports for pyramid to prepare code for speedup optimization. 2018-11-24 17:52:21 +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
Daniel Dourvaris
3801dc220e pyramid: fixed some deprecated calls. 2018-10-01 10:16:57 +02:00
Marcin Kuzminski
9033601562 logging: use lazy parameter evaluation in log calls. 2018-09-13 17:41:35 +02:00
Marcin Kuzminski
5f21c467e2 exception-tracker: store event sending exception for easier event fail debugging. 2018-09-06 19:27:53 +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
fed3c3c12b integrations: register dummy jenkins integrations. 2018-02-15 20:21:39 +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
257cf596e2 integrations: reduce logging on override integration from warn to debug. 2018-01-16 12:41:21 +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
79f00ec46a flash: use consistent use of h.flash across the application. 2017-11-16 20:35:50 +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
5f9ae2ae11 pylons: remove pylons as dependency
- dependencies: bumped:
 -setuptools-scm==1.15.6
 -celery==4.1.0
 -kombu==4.1.0
 -pytz==2017.3
 -Routes==2.4.1

Removed all pylons components. Refactored the code to use only pyramid
parts
2017-11-15 13:42:54 +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