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
Metadata
Release files for sloth-ci.ext.webhooks 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sloth-ci.ext.webhooks-1.0.2.zip | 5.0 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sloth_ci.ext.webhooks-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
| sloth-ci.ext.webhooks-1.0.2.win-amd64.exe | Details |
Total release size: 150.6 kB
Release files / sloth-ci.ext.webhooks-1.0.2.zip
| Download URL | sloth-ci.ext.webhooks-1.0.2.zip |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
249b88adbdad648c94d73fedad7962e3fc1c934068c9493ff652736d17dedb19
|
|
BLAKE2b-256 checksum How to use checksums |
2ec375d3ae8cb2e1615097ff8a93aee5fbdbe954a7feec9439f7ffe304180150
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / sloth_ci.ext.webhooks-1.0.2-py3-none-any.whl
| Download URL | sloth_ci.ext.webhooks-1.0.2-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
040e26098cb2d5eb4a538227acddaa2ec32ce6f95ec04ce2d816af273aa100c8
|
|
BLAKE2b-256 checksum How to use checksums |
5d8ca2e6ffeced478bde55328a274971dda8ab6b8f0f76a147264880b46c3de1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / sloth-ci.ext.webhooks-1.0.2.win-amd64.exe
| Download URL | sloth-ci.ext.webhooks-1.0.2.win-amd64.exe |
|---|---|
| Size | 141.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3d24ace1559b15d84001908b8fd74f39f6706631344547e6d3f6bc9c671e3f3
|
|
BLAKE2b-256 checksum How to use checksums |
e54359a8ed6802393fd986ab0fcc3fbf4be970cdd2ee1252853c3889723ef8d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |