Skip to main content

Github build pypi version docker pulls

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

announcer-6.0.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

announcer-6.0.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file announcer-6.0.1.tar.gz.

File metadata

  • Download URL: announcer-6.0.1.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for announcer-6.0.1.tar.gz
Algorithm Hash digest
SHA256 2248c536554c9914987f57d79e20db9d6ee2b6f218365b7de6fd7a27984aaf77
MD5 17fcf49ac98dae03ece5ac9de4f6bf0d
BLAKE2b-256 66e8c3982251b44afa34be3a5f1ab86e438d353c16a078c9fe9ea8d41a9e5b48

See more details on using hashes here.

Provenance

The following attestation bundles were made for announcer-6.0.1.tar.gz:

Publisher: deploy.yml on Metaswitch/announcer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file announcer-6.0.1-py3-none-any.whl.

File metadata

  • Download URL: announcer-6.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for announcer-6.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4aef3bfaae804eba376a355d2a5999446c97b68524aa413f37f337b544d3d0ab
MD5 cee23ad2c13709bbaf3c3f08cb948912
BLAKE2b-256 5a51e431092baa4478b5a9cc65ddeaaf49eda872b93a4b0942e300433b05fefa

See more details on using hashes here.

Provenance

The following attestation bundles were made for announcer-6.0.1-py3-none-any.whl:

Publisher: deploy.yml on Metaswitch/announcer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

6.0.1 This release

2 files

5.0.0

2 files

4.0.1

2 files

4.0.0

2 files

3.0.2

2 files

3.0.1

2 files

3.0.0

2 files

2.3.0

2 files

2.2.0

2 files

2.1.0

2 files

2.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page