Skip to main content
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

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)

Source distribution for sloth-ci.ext.webhooks 1.0.2
File Size Uploaded
sloth-ci.ext.webhooks-1.0.2.zip 5.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for sloth-ci.ext.webhooks 1.0.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.2 This release

3 release files

1.0.1

3 release files

1.0.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page