a GitHub Integration built with Probot that automatically identifies cpplint issues during code reivew.
See probot-cpplint-test#10 for an example.
-
Install Heroku CLI.
-
Create a GitHub integration:
- Webhook URL:
<your_app>.herokuapp.comand we will know it when creating a new heroku app (heroku create) - Webhook secret:
<random_string> - Permissions & events:
Read & writeonPull requestsandRepository contents
- Webhook URL:
-
Download the private key
prod.pemand remember your integration id. -
Install the GitHub integration by clicking
Installbutton on thesettingspage. -
Clone this repository
git clone https://github.com/hokein/probot-cpplint.git. -
Deploy to Heroku, run the following commands:
$ cd /path/to/probot-cpplint // Create a heroku app $ heroku create // Set configuration $ heroku config:set WEBHOOK_SECRET="" PRIVATE_KEY="$(cat /path/to/prod.pem)" INTEGRATION_ID=<integration_id> // Deploy the plugin to heroku $ git push heroku master
The probot plugin should be up and working now. Create a test repository to test it. See the official doc for more details.
