Webhooks for Sloth CI
Project description
Send POST requests on build events in Sloth CI apps.
Executing actions of an app is called *build*. A build is considered *completed* if all its actions were completed. If some actions were completed and some failed, it's a *partially completed*; if all actions fail, the build *failed*.
This extension sends POST requests when your builds complete (fully or partially) or fail; just pick the desired notification level and the target URL.
Installation
------------
.. code-block:: bash
$ pip install sloth-ci.ext.webhooks
Usage
-----
.. code-block:: yaml
:caption: webhooks.yml
extensions:
webhooks:
# Use the module sloth_ci.ext.webhooks.
module: webhooks
# Log level (number or valid Python logging level name).
# ERROR includes only build fails, WARNING adds partial completions,
# INFO adds completion, and DEBUG adds trigger notifications.
# Default is WARNING.
level: INFO
# URL to send the requests to.
url: http://example.com
Executing actions of an app is called *build*. A build is considered *completed* if all its actions were completed. If some actions were completed and some failed, it's a *partially completed*; if all actions fail, the build *failed*.
This extension sends POST requests when your builds complete (fully or partially) or fail; just pick the desired notification level and the target URL.
Installation
------------
.. code-block:: bash
$ pip install sloth-ci.ext.webhooks
Usage
-----
.. code-block:: yaml
:caption: webhooks.yml
extensions:
webhooks:
# Use the module sloth_ci.ext.webhooks.
module: webhooks
# Log level (number or valid Python logging level name).
# ERROR includes only build fails, WARNING adds partial completions,
# INFO adds completion, and DEBUG adds trigger notifications.
# Default is WARNING.
level: INFO
# URL to send the requests to.
url: http://example.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file sloth-ci.ext.webhooks-1.0.2.zip
.
File metadata
- Download URL: sloth-ci.ext.webhooks-1.0.2.zip
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
249b88adbdad648c94d73fedad7962e3fc1c934068c9493ff652736d17dedb19
|
|
MD5 |
2a629247bae4240758c0ce6619ffa958
|
|
BLAKE2b-256 |
2ec375d3ae8cb2e1615097ff8a93aee5fbdbe954a7feec9439f7ffe304180150
|
File details
Details for the file sloth_ci.ext.webhooks-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: sloth_ci.ext.webhooks-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
040e26098cb2d5eb4a538227acddaa2ec32ce6f95ec04ce2d816af273aa100c8
|
|
MD5 |
1252d71da7f53b0e2c809247f47587f9
|
|
BLAKE2b-256 |
5d8ca2e6ffeced478bde55328a274971dda8ab6b8f0f76a147264880b46c3de1
|
File details
Details for the file sloth-ci.ext.webhooks-1.0.2.win-amd64.exe
.
File metadata
- Download URL: sloth-ci.ext.webhooks-1.0.2.win-amd64.exe
- Upload date:
- Size: 141.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
f3d24ace1559b15d84001908b8fd74f39f6706631344547e6d3f6bc9c671e3f3
|
|
MD5 |
7588e833180f934346602139ca803b46
|
|
BLAKE2b-256 |
e54359a8ed6802393fd986ab0fcc3fbf4be970cdd2ee1252853c3889723ef8d4
|