Commit Graph

46 Commits

Author SHA1 Message Date
Ben fd10a957c9
Fix/Update Dockerfile 2021-06-28 10:39:37 +02:00
Ben 3b50125d54
Update to Flask 2 and matrix-nio
Use asynchronously running code.
Rewrite error handling and all api interactions.
Add config.yml.example and more configuration options.
Improve README.md.
Update licenses in all files.
2021-06-28 09:56:48 +02:00
Ben 9927a67a86
Newer prometheus timestamps are actually ISO
use `datetime.fromisoformat` when the promtime pattern does not match.
2021-06-15 18:33:34 +02:00
Ben 994bf236af
Apply black formatter on Python files 2020-09-27 17:56:36 +02:00
Ben 5c7571f952
Add better output for prometheus alerts
and add testrequest JSON file.
2020-09-27 17:55:20 +02:00
Benedikt Ziemons c3766767ba
Remove 2nd layer group from promtime regex 2020-09-24 17:08:10 +02:00
Benedikt Ziemons 3f8d6215e8
Replace map with filter in parse_promtime 2020-09-24 17:05:20 +02:00
Benedikt Ziemons 5da461409f
Fix handling zero promtime 2020-09-24 16:50:18 +02:00
Benedikt Ziemons 79824a595d
Add error logging to wmn 2020-09-24 16:45:38 +02:00
Benedikt Ziemons e48aa8cbda
Replace Z with +00:00 for promtimes 2020-09-24 16:35:01 +02:00
Benedikt Ziemons b06179ad90
Fix error with prometheus timestamps 2020-09-24 16:25:06 +02:00
Ben 419ec79227 Fix empty changes error for Jenkins
and update project files.
2020-05-16 17:53:57 +02:00
Ben fffe8c25b6
Fix unpacking error 2020-05-01 00:22:07 +02:00
Ben 07abc2bf12
Respect the GitHub project URL and link commits 2020-04-29 02:59:27 +02:00
Ben 06317d9430
Support room alias supplied via channel arg 2020-04-03 16:41:11 +02:00
Ben 9b41ab82a0
Add basic prometheus webhook support
with type=prometheus and secret url arguments.
Also update project files.
2020-04-03 16:32:17 +02:00
Ben 847c0cb45c
Add runnable script for notification 2019-10-09 14:36:25 +02:00
Ben 5be1f444e1
Add branch name to push message
and ignore empty GitLab push hook
2019-09-20 19:25:15 +02:00
Ben 0ccc649d59
Fix calling old function name 2019-08-14 19:36:35 +02:00
Ben 3cf14300fd
Merge pull request #1 from AnwariasEu/master
Display commit messages as links to the appropiate commits
2019-08-09 13:50:41 +02:00
Christian Steinhaus 3f7cc00962 Changed function name
`extract_commit_message` is now called `extract_commit_info` to better
represent its functionality
2019-08-09 13:31:32 +02:00
Christian Steinhaus 9a0f0cbfba Updated README 2019-08-09 13:29:42 +02:00
Christian Steinhaus fb560a5bea Commit messages are now links
Each commit message links to its commit page in the Webinterface
2019-08-08 10:05:58 +02:00
Christian Steinhaus af50c6211b Added json test request and how to testing 2019-08-08 10:05:00 +02:00
Ben f9828e9459
Fix getting msgtype argument 2019-07-25 23:18:32 +02:00
Ben 6ace0e70c7
Fix color in Matrix (again) 2019-07-22 02:00:45 +02:00
Ben 8724bfc71a
Make msgtype configurable in url parameter 2019-07-22 02:00:30 +02:00
Ben 2cd2acf67c
Format timestamp and switch to m.text message type
for Jenkins requests, because matterbridge doesn't forward m.notice.
2019-07-21 15:26:30 +02:00
Ben f747eb9411
Jenkins output style changes 2019-07-19 20:18:18 +02:00
Ben 6f43bc221f
Adjust styling, fix span color 2019-07-19 20:06:28 +02:00
Ben 1115892fb3
Implement Jenkins post-build webhook trigger
as sent by the plugin at https://github.com/theZorro266/outbound-webhook-plugin
2019-07-19 19:39:10 +02:00
Ben c731dce53c
Sanitize room input 2019-07-19 16:45:58 +02:00
Ben 7b6d99a281
Add example Dockerfile 2019-07-19 16:16:48 +02:00
Ben 113a56b27d
Add stub Jenkins webhook listener 2019-07-19 14:14:16 +02:00
Ben 399b53b88a
Return 204, no content 2019-07-19 13:53:00 +02:00
Ben 75f836ea26
Iterate before using next 2019-07-19 01:54:23 +02:00
Ben b5c97dd62c
Sort commits and output first-line commit messages 2019-07-19 01:47:11 +02:00
Ben 1b2fc7610c
Message commits on push hook into matrix room 2019-07-18 16:11:34 +02:00
Ben 9241782d00
Correct configuration homeserver url in example 2019-07-18 15:46:22 +02:00
Ben 34700df9fb
Use the correct parameter to set accepted methods 2019-07-18 15:42:10 +02:00
Ben 1caf2a359d
Update webhook route to accept POST requests
instead of only GET.
2019-07-18 15:37:25 +02:00
Ben 70e6cfad00
Rename app to application as the uwsgi default 2019-07-18 15:09:10 +02:00
Ben 7d1766d3e2
Add config.yml example 2019-07-18 14:47:28 +02:00
Ben 5ed7532a05
Add debug version of simple webhook-server 2019-07-18 14:45:03 +02:00
Ben 06366dab75
Add PyCharm project files 2019-07-18 13:20:56 +02:00
Ben c95b760316
Init. Add readme, license and gitignore 2019-07-18 13:19:03 +02:00