{% extends "coprs/detail/settings.html" %} {% set selected_monitor_tab = "webhooks" %} {%block settings_breadcrumb %}Webhooks{% endblock %} {% block tab_content %}

Webhooks

You can set up automatic builds of your packages coming from Pagure and Github repositories.

  1. Set a default source of a package in this project.
  2. Enable automatic rebuilds for the package.
  3. Finish it by following the SCM host specific guide below.

Copr will now rebuild the package every time it receives the webhook call - usually with every commit or every tag.

Pagure

How to use it:

  1. Activate Fedmsg in section 'Hooks' in the project settings.
  2. That's it.

Github

{{ github_url }}

How to use it:

  1. In your GitHub project, go to Settings / Webhooks and services.
  2. Click on the Add webhook button.
  3. Fill in the Payload URL field with the url above.
  4. Select application/json as the content type.
  5. Click the Add webhook button.

Gitlab

{{ gitlab_url }}

How to use it:

  1. In your Gitlab project, go to Settings / Integrations.
  2. Fill in the URL field with the url above.
  3. Select Push events and Tag push events as event triggers.
  4. Click the Add webhook button.
{% endblock %}