status-github-bot/index.js

25 lines
859 B
JavaScript
Raw Normal View History

var MemCache = require('mem-cache')
var SlackGitHubCacheBuilder = require('./lib/retrieve-slack-github-users')
module.exports = async (robot) => {
2018-01-22 13:48:57 +00:00
console.log('Yay, the app was loaded!')
var slackGitHubCache = new MemCache({ timeoutDisabled: true })
var slackCachePromise = SlackGitHubCacheBuilder.build(robot, slackGitHubCache)
2018-01-23 14:27:25 +00:00
require('./scripts/assign-new-pr-to-review')(robot)
require('./scripts/assign-approved-pr-to-test')(robot)
2018-01-23 14:27:25 +00:00
require('./scripts/assign-to-bounty-awaiting-for-approval')(robot)
require('./scripts/greet-new-contributor')(robot)
2018-01-22 13:48:57 +00:00
await slackCachePromise
// Add scripts which require using the Slack/GitHub cache after this comment
2018-01-22 13:48:57 +00:00
// For more information on building apps:
// https://probot.github.io/docs/
// To get your app running against GitHub, see:
// https://probot.github.io/docs/development/
}