charliedowler / scaling-octo-cyril

:octocat: Approvals for your GitHub issues

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scaling-octo-cyril

Prerequisites

  • Activator

Usage

Set the list of people needed to approve a PR by using the following syntax inside your Pull Requests body or inside a comment:

[approve: @charliedowler, @miketv, @violetb]

To approve, type +1 in a comment.

Demo

demo.gif

Setup & Installation

Until the correct authentication method is implemented, use personal access tokens to authenticate requests.

$ export github_user=myusername
# Your generated github personal access token
$ export github_pat=59996509090e5wgd65a1ccf48e342343297658e321
$ activator run
# server started on http://localhost:9000

You can change the label name, color and string to treat a comment as an approval in conf/application.conf

64| cyril.label = "ready"

66| cyril.color = "199c4b"

68| cyril.ready = "+1"

Setting up the Github webhook

  1. Go to your repository settings
  2. In the left hand navigation panel, click "Webhooks & Services"
  3. Enter http://{hostname}.com:9000/api/v1/pullrequest in the Payload URL field

Then select the following events under Let me select individual events webhook-config.png

About

:octocat: Approvals for your GitHub issues

License:Other


Languages

Language:Scala 79.3%Language:ApacheConf 15.6%Language:HTML 4.3%Language:JavaScript 0.7%