Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.58 KB

readme.md

File metadata and controls

43 lines (31 loc) · 1.58 KB

Probot: Cpplint

a GitHub Integration built with Probot that automatically identifies cpplint issues during code reivew.

image

See probot-cpplint-test#10 for an example.

Deploy to Heroku

  1. Install Heroku CLI.

  2. Create a GitHub integration:

    • Webhook URL: <your_app>.herokuapp.com and we will know it when creating a new heroku app (heroku create)
    • Webhook secret: <random_string>
    • Permissions & events: Read & write on Pull requests and Repository contents
  3. Download the private key prod.pem and remember your integration id.

  4. Install the GitHub integration by clicking Install button on the settings page.

  5. Clone this repository git clone https://github.com/hokein/probot-cpplint.git.

  6. 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.