{% extends 'layout.html' %} {% block body %}

Introduction

This simple service uses GitHub webhooks to catch updates of pull requests (PRs) and update the labels of that PR by matching changes files with preconfigured patterns. It is mainly homework for MI-PYT course, but can be actually quite useful although it consists only of this info page (GET /) and webhook listener (POST /).

Labeling of Pull Requests

Pull Requests will be labeled by user: {{ user|github_user_link }}

{% for label, patterns in labels.items() %} {% endfor %}

Service usage

To manage PRs of your repo by this service you need to know configured webhook secret, then just:

  1. Go to your repository settings at GitHub
  2. Pick webhooks from left menu
  3. Press Add webhook
  4. Create webhook with configuration below and press Add webhook

Webhook configuration

Payload URL
{{ request.url }}
Content type
application/json
Secret
webhook secret (cannot be published)
Which events would you like to trigger this webhook?
Let me select individual events: Pull requests
Active
Yes
{% endblock %}