kanboard/plugin-github-webhook

Name: plugin-github-webhook

Owner: Kanboard

Description: Github Webhook Plugin for Kanboard

Created: 2016-01-07 02:37:04.0

Updated: 2018-04-12 20:54:34.0

Pushed: 2018-04-13 17:25:33.0

Homepage:

Size: 27

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Github Webhook

Build Status

Bind Github webhook events to Kanboard automatic actions.

Author
Requirements
Installation

You have the choice between 3 methods:

  1. Install the plugin from the Kanboard plugin manager in one click
  2. Download the zip file and decompress everything under the directory plugins/GithubWebhook
  3. Clone this repository into the folder plugins/GithubWebhook

Note: Plugin folder is case-sensitive.

Documentation

Github webhooks are plugged to Kanboard automatic actions. When an event occurs on Github, an action can be performed on Kanboard.

List of available events
List of available actions
Configuration on Kanboard

The Webhook URL API endpoint is visible on the project settings page:

Webhook URL

The URL will be different from this screenshot.

Configuration on Github

Go to your project settings page, on the left choose “Webhooks & Services”, then click on the button “Add webhook”.

Github configuration

Each time an event happens, Github will send an event to Kanboard now. The Kanboard webhook url is protected by a random token.

Everything else is handled by automatic actions in your Kanboard project settings.

Examples

To make it work, you have to create some automatic actions in your projects:

Close a Kanboard task when a commit pushed to Github

When one or more commits are sent to Github, Kanboard will receive the information, each commit message with a task number included will be closed.

Example:

Create a Kanboard task when a new issue is opened on Github

When a task is created from a Github issue, the link to the issue is added to the description and the task have a new field named “Reference” (this is the Github ticket number).

Close a Kanboard task when an issue is closed on Github Reopen a Kanboard task when an issue is reopened on Github Assign a task to a Kanboard user when an issue is assigned on Github

Note: The username must be the same between Github and Kanboard and the user must be member of the project.

Assign a category when an issue is tagged on Github Create a comment on Kanboard when an issue is commented on Github

If the username is the same between Github and Kanboard the comment author will be assigned, otherwise there is no author. The user also have to be member of the project in Kanboard.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.