Announce changes in keepachangelog-style CHANGELOG.md files to Slack and Microsoft Teams
Project description
announcer
This tool:
- takes an keepachangelog-style CHANGELOG.md file
- extracts all changes for a particular version
- and sends a formatted message to a Slack or Microsoft Teams webhook.
It is available as a Python package, or as a Docker container for use in CI.
Installation
Install this tool using pip:
pip install announcer
Tool usage
usage: announce [-h] (--webhook WEBHOOK | --slackhook WEBHOOK) [--target {slack,teams}] --changelogversion CHANGELOGVERSION --changelogfile CHANGELOGFILE --projectname PROJECTNAME
[--username USERNAME] [--compatibility-teams-sections] [--iconurl ICONURL | --iconemoji ICONEMOJI]
Announce CHANGELOG changes on Slack and Microsoft Teams
optional arguments:
-h, --help show this help message and exit
--webhook WEBHOOK The incoming webhook URL
--slackhook WEBHOOK The incoming webhook URL. (Deprecated)
--target {slack,teams}
The type of announcement that should be sent to the webhook
--changelogversion CHANGELOGVERSION
The changelog version to announce (e.g. 1.0.0)
--changelogfile CHANGELOGFILE
The file containing changelog details (e.g. CHANGELOG.md)
--projectname PROJECTNAME
The name of the project to announce (e.g. announcer)
--username USERNAME The username that the announcement will be made as (e.g. announcer). Valid for: Slack
--compatibility-teams-sections
Compatibility option - sends Teams messages in multiple sections
--iconurl ICONURL A URL to use for the user icon in the announcement. Valid for: Slack
--iconemoji ICONEMOJI
An emoji code to use for the user icon in the announcement (e.g. party_parrot). Valid for: Slack
Gitlab Usage
Announcer builds and publishes a Docker image that you can integrate into your .gitlab-ci.yml
:
announce:
stage: announce
image: metaswitch/announcer:5.0.0
script:
- announce --webhook <webhook address>
--changelogversion $CI_COMMIT_REF_NAME
--changelogfile <CHANGELOG.md file>
--projectname <Project name>
--iconemoji party_parrot
only:
- tags
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
announcer-5.0.0.tar.gz
(7.8 kB
view details)
Built Distribution
File details
Details for the file announcer-5.0.0.tar.gz
.
File metadata
- Download URL: announcer-5.0.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.9.16 Linux/5.15.0-1038-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7559644c55c09461748183339013faa6491a4c2cece953987d85844ea14c571c |
|
MD5 | 8fab77533c17a8ff8dc20618f7baf6c1 |
|
BLAKE2b-256 | 791441cdf073d8fa618ebbbc9c8042f1880ffff93cd7bbb8a94da8fa1ac145f8 |
File details
Details for the file announcer-5.0.0-py3-none-any.whl
.
File metadata
- Download URL: announcer-5.0.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.9.16 Linux/5.15.0-1038-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39f9e39f2da828bc3ab535136e931638b6644257d3acf414d262a6110a9012a9 |
|
MD5 | 0b8a97bac465ae6fea3e6f76a8c2ad52 |
|
BLAKE2b-256 | 08c6595e2d24bf5f904c898321a07883016f7e0179fcc5ef525fecd1ff309173 |