This is the Rubygems webhook that manages the labels of any issue/pull_request when opening/closing.
When an issue/pull_request is opened it will set the specified label in ISSUE_LABEL
When an issue/pull_request is closed it will remove the label in that issue/pull_request
Set the webhook to: http://{your_host}/handle/label
in the github Webhooks & services options
Make sure you set the follow ENV variables:
Variable | Data |
---|---|
ACCESS_TOKEN | Github access token |
REPO | Name of the repo you want to manage e.g user/my_repo |
ISSUE_LABEL | Name of the label you want to add |