merge upstream changes
This commit is contained in:
commit
6781f994f9
21 changed files with 857 additions and 660 deletions
20
README.md
20
README.md
|
@ -4,9 +4,11 @@
|
|||
[](https://github.com/nim65s/matrix-webhook/actions/workflows/lint.yml)
|
||||
[](https://hub.docker.com/r/nim65s/matrix-webhook)
|
||||
[](https://pypi.org/project/matrix-webhook/)
|
||||
[](https://results.pre-commit.ci/latest/github/nim65s/matrix-webhook/main)
|
||||
|
||||
[](https://github.com/psf/black)
|
||||
[](https://codecov.io/gh/nim65s/matrix-webhook)
|
||||
[](https://codeclimate.com/github/nim65s/matrix-webhook/maintainability)
|
||||
[](https://badge.fury.io/py/matrix-webhook)
|
||||
|
||||
Post a message to a matrix room with a simple HTTP POST
|
||||
|
@ -21,9 +23,12 @@ docker pull nim65s/matrix-webhook
|
|||
|
||||
## Start
|
||||
|
||||
Create a matrix user for the bot, and launch this app it with the following arguments or environment variables:
|
||||
Create a matrix user for the bot, and launch this app with the following arguments and/or environment variables
|
||||
(environment variables update defaults, arguments take precedence):
|
||||
|
||||
```
|
||||
matrix-webhook -h
|
||||
# OR
|
||||
python -m matrix_webhook -h
|
||||
# OR
|
||||
docker run --rm -it nim65s/matrix-webhook -h
|
||||
|
@ -104,6 +109,19 @@ These formatters will output custom messages depending on the specific formatter
|
|||
For example, if your matrix-webhook was hosted at https://webhooks.example.com, and you were setting up pingdom and you have an api_key of "123", you would use the following URL for your webhook call from pingdom:
|
||||
`https://webhooks.example.com/?formatter=pingdom&api_key=123`
|
||||
|
||||
### For Gitlab
|
||||
|
||||
At a group level, Gitlab does not permit to setup webhooks. A workaround consists to use Google
|
||||
Chat or Microsoft Teams notification integration with a custom URL (Gitlab does not check if the url begins with the normal url of the service).
|
||||
|
||||
#### Google Chat
|
||||
|
||||
Add a Google Chat integration with an URL ending with `?formatter=gitlab_gchat&key=API_KEY`
|
||||
|
||||
#### Microsoft Teams
|
||||
|
||||
Add a Microsoft Teams integration with an URL ending with `?formatter=gitlab_teams&key=API_KEY`
|
||||
|
||||
## Test room
|
||||
|
||||
[#matrix-webhook:tetaneutral.net](https://matrix.to/#/!DPrUlnwOhBEfYwsDLh:matrix.org)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue