releasenotice
This is a rough little python script for automating notices of the release of software products to slack channels.
Install
git clone https://github.com/igable/releasenotice.git
python setup.py install
or get it from py PyPI
pip install -U releasenotice
Configure
Edit the config file with you messages and your slack API key:
vim releasenotice.conf
You can set the channel for the message, the bot name, and the emoji used.
You can obtain a Slack API token from https://api.slack.com/web (look near the bottom of the page)
Run
Post the message:
releasenotice --config-file releasenotice.conf --product exampleproduct --version 1.0.0
or load the config file from a URL. In this case you must set the environement variable SLACK_API_KEY
, don't post your
Slack API key to the web in the config file accidentally.
export SLACK_API_KEY=xoxp-0123456789-0123456789-0123456789-123a456
releasenotice --http-config-file https://gist.githubusercontent.com/igable/x/raw/y/releasenotice.conf --product mixcoatl --version 1.2.0
You will get a slack message like this: