probot/README.md

34 lines
2.3 KiB
Markdown
Raw Normal View History

2016-10-08 06:52:36 +08:00
# PRobot
2016-09-17 00:06:46 +08:00
2016-10-13 04:44:10 +08:00
[![Join the chat at https://gitter.im/bkeepers/PRobot](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/bkeepers/PRobot?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
2016-10-17 12:29:30 +08:00
_**Heads up!** "PRobot" is a codename that is almost guaranteed to change._
2016-09-17 06:00:20 +08:00
2016-10-08 06:56:24 +08:00
PRobot is a trainable robot that responds to activity on GitHub. It's like [Hubot](https://hubot.github.com/), but for GitHub events instead of chat messages.
## Installing
2016-09-18 02:31:24 +08:00
_**Heads up!** The [demo integration](https://github.com/integration/probot-demo) is for demo purposes only. It is very likely to go away at some point, so please don't use it for production purposes._
2016-09-17 00:06:46 +08:00
0. Go to the **[demo integration](https://github.com/integration/probot-demo)**, click **Install**, and then select an organization.
2016-11-18 12:38:09 +08:00
0. Create a `.probot.js` file in your repository with the following contents. See [Configuration](docs/configuration.md) for more information on what behaviors can be built.
2016-09-17 00:06:46 +08:00
on('issues.opened').comment(`
Hello @{{ sender.login }}. Thanks for inviting me to your project.
Read more about [all the things I can help you with][config]. I can't
wait to get started!
[config]: https://github.com/bkeepers/PRobot/blob/master/docs/configuration.md
`);
2016-12-07 23:51:38 +08:00
include("bkeepers/probot:docs/demo.js");
2016-09-17 00:06:46 +08:00
2016-10-17 01:05:22 +08:00
0. Open a new issue. @probot should post a comment (you may need to refresh to see it).
2016-10-13 11:24:48 +08:00
### Deploy your own bot to Heroku
0. [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) - 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.
2016-10-13 11:36:44 +08:00
0. In another tab, [create an integration](https://developer.github.com/early-access/integrations/creating-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.
2016-10-13 11:24:48 +08:00
0. After creating your GitHub integration, go back to the Heroku tab and fill in the configuration variables with the values for the GitHub Integration
0. Create a `.probot.yml` file in your repository. See [Configuring](#configuring).