mirror of
https://github.com/zhigang1992/probot.git
synced 2026-06-15 10:27:43 +08:00
1.4 KiB
1.4 KiB
Deployment
Every plugin can either be deployed as a stand-alone bot, or combined with other plugins.
Combining plugins
To deploy a bot that includes multiple plugins, create a new app that has them both listed as dependencies in package.json:
{
"name": "my-probot",
"priate": true,
"dependencies": {
"probot-autoresponder": "~1.0",
"probot-configurer": "~1.0",
},
"scripts": {
"run": "probot run"
},
"probot": {
"plugins": [
"probot-autoresponder",
"probot-configurer"
]
}
}
Deploying to Heroku
- Click this button and pick an App Name that Heroku is happy with, like
your-name-probot. Before you can complete this, you'll need config variables from the next step.- In another tab, create an integration on GitHub, using
https://your-app-name.herokuapp.com/as the Homepage URL, Callback URL, and Webhook URL. The permissions and events that your bot needs access to will depend on what you use it for. - After creating your GitHub integration, go back to the Heroku tab and fill in the configuration variables with the values for the GitHub Integration
- Create a
.probot.ymlfile in your repository. See Configuring.