Using the reminders key you can set up which repositories to monitor, and over ride the channel and times. You should also specify default times in the UTC time zone you want the bot to announce open PRs at. The next thing you want to set is a default channel to announce pull requests to. The last token you need to generate is an API token for github, which you'll store in the github_api_token key. Click on your team’s name in the top left corner. For instance, you can change what you want to be notified about, or the sound of your Slack notifications. You can use notification settings to customize your own. A sample config looks like: botname: wubwubwub slackapitoken: ojdfsjdf githubapitoken: kasjfdkafa3 defaultchannel: general defaulttimes: - hour: 24 minute: 54 reminders: - repo: jjshoe/slackbot-pr-reminder channel: dev times: - hour. Someone uses your keyword (about topics you’re interested in). You'll want to create a bot account in slack, and put the name you use in the config using the key bot_name, you'll also want to put the slack API token in the key slack_api_token. Using the reminders key you can set up which repositories to monitor, and over ride the channel and times. A minimal configuration file is in place for you to extend. The configuration file exists in config/default.yml. Getting the slackbot going it three easy steps: Do your PRs sit open for an exceptionally long time? Are you tired of manually nagging people to review them? Nag no more, this slackbot takes care of the nagging for you Setup
0 Comments
Leave a Reply. |