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
Close
Hashes for sloth_ci.ext.webhooks-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 040e26098cb2d5eb4a538227acddaa2ec32ce6f95ec04ce2d816af273aa100c8 |
|
MD5 | 1252d71da7f53b0e2c809247f47587f9 |
|
BLAKE2b-256 | 5d8ca2e6ffeced478bde55328a274971dda8ab6b8f0f76a147264880b46c3de1 |
Close
Hashes for sloth-ci.ext.webhooks-1.0.2.win-amd64.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3d24ace1559b15d84001908b8fd74f39f6706631344547e6d3f6bc9c671e3f3 |
|
MD5 | 7588e833180f934346602139ca803b46 |
|
BLAKE2b-256 | e54359a8ed6802393fd986ab0fcc3fbf4be970cdd2ee1252853c3889723ef8d4 |