Skip to content

coreos/rhcosbot

Repository files navigation

RHCOS bot

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.

Data model

See this document.

Installing

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.py

Alternatively, 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.

Slack scopes

  • channels:read - view public channels in a workspace
  • app_mentions:read - receive commands via mentions in channel
  • chat:write - send threaded replies to channel
  • im:write - send error reports to the bot administrator
  • reactions:write - react to command messages to indicate status
  • groups:read - view private channels the bot has been invited to
  • groups:write - send threaded replies to private channels

Config format

See config.example. Put this in ~/.rhcosbot by default.

About

RHCOS Bugzilla bot

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6