This is a Slack bot to help with managing RHCOS backports and bootimage bumps. It is stateless (except for some replay protection on Slack messages) and command-driven, pulling all of its data from Jira.
See this document.
A setup.cfg would be nice, but we don't have one right now.
cd ~
git clone https://github.com/coreos/rhcosbot
cd rhcosbot
virtualenv env
env/bin/pip install -r requirements.txt
env/bin/python rhcosbot.pyAlternatively, a container image is available.
You'll also need to set up a Slack app in your workspace and get an API token for it, and to get a Jira API key.
channels:read- view public channels in a workspaceapp_mentions:read- receive commands via mentions in channelchat:write- send threaded replies to channelim:write- send error reports to the bot administratorreactions:write- react to command messages to indicate statusgroups:read- view private channels the bot has been invited togroups:write- send threaded replies to private channels
See config.example. Put this in ~/.rhcosbot by default.