Commit Graph

57 Commits

Author SHA1 Message Date
Ben 0ce9e81c86
Test with Python 3.12, remove 3.11 requirement 2024-05-01 16:15:30 +02:00
Ben 7b6d0ae68f
Remove VOLUME from Dockerfile
because podman creates a directory at that path.
2024-02-05 17:45:17 +01:00
Ben 1d62653830
Update to Python 3.11 and Pipfile.lock
Rename wsgi module from wmn
Update Dockerfile to use `pipenv install --deploy`
Clarify README.md
2024-02-05 17:33:14 +01:00
Ben 95e830e5c9
Improve README.md, mention WMN_CONFIG_PATH 2023-10-27 14:42:41 +02:00
Ben 5364860191
Add pyproject.toml, refactor notify.py
Add instructions how to run the matrix-notify command-line program.
2023-10-27 14:09:13 +02:00
Ben a0279c12e6
Move to pipenv, update dependencies + more
Replaces occurrences of channel with room (deprecates channel arguments).
Use python native logging module instead of prints.
Remove .idea from git
Simplify .gitignore
2023-10-27 13:46:58 +02:00
Ben 425c39a733
Add async Flask in Dockerfile 2021-10-28 23:22:28 +02:00
Ben 330a259be1
Refactor to wmn package/module 2021-10-28 22:58:37 +02:00
Ben 56a5ce3cef
Add exception wrapping nio.ErrorResponse
Fixes wrong usage nio.ErrorResponse as an exception.
2021-10-28 20:48:06 +02:00
Ben 3dd697755d
Replace datetime.fromisoformat with dateutil 2021-07-21 22:05:39 +02:00
Ben 91bd738331
Specify uwsgi listen port via ENV in Dockerfile 2021-06-29 13:02:25 +02:00
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