A slack bot that post your omoitsuki to GitHub
Omotsuki-bot is a slack bot that automatically post your omoitsuki to a designated GitHub repository as an Issue.
It also tracks slack thread comments to omoitsuki post, and add comments to the corresponding GitHub Issue as well.
- Simply post your omoitsuki to slack, anytime / anywhere.
- Automated posting of your omoitsuki and comments to your GitHub.
- Omoitsuki stocked in your GitHub waiting to be refereed by you !
- Python3 or more
- requests(2.12.4)
- slackbot(0.4.1)
First, Deploy your omoitsukibot app.
Now, you can stock your omoitsuki by posting messages to the Slack channel you invited your bot to.
- Send your omoitsuki to your slack channel according to the format below.
omoitsukibot will post your omoitsuki to your GitHub repository as an Issue.
(This feature is still under delevlopment) 2. Make comments to omoitsuki. There are two ways.
- post
#[Issue No.][your comment]
- create a thread to a posted omoistuki and make your comment there
omoitsukibot will post your comment to the corresponding GitHub Issue.
$ git clone https://github.com/attache-case/omoitsukibot
You can set your bot name as you like.
Please note the API Token
of your slack bot.
You will use this in the next step.
KEY | VALUE |
---|---|
SLACK_API_TOKEN | {{API Token of your slack bot}} |
GITHUB_USERNAME | {{username of the GitHub account that execute posting}} *planning to remove |
GITHUB_PASSWORD | {{password of the GitHub account that execute posting}} *planning to remove |
GITHUB_TOKEN | {{GitHub personal access token with 'read/write' permissions to your repository}} |
GITHUB_REPO_OWNER | {{owner of the GitHub repository where the bot will post}} |
GITHUB_REPO_NAME | {{name of the GitHub repository where the bot will post}} |
Please customize these environment valuables according to your GitHub account information.
Also, use your slack bot's API token you created in 2. and create token for github access, too.
$ cd /omoitsukibot
$ python run.py
type
/invite @omoitsukibot
and send in your channel(@omoitsukibot
is the name of the bot you set in 2.)
See Usage.