Connect Gitea webhook events to Kanboard automatic actions.
- Frederic Guillot (original GogsWebhook plugin)
- Chris Metz
- License MIT
- Kanboard >= 1.0.37
- Gitea
- Gitea webhooks configured for a project
You have the choice between 3 methods:
- Install the plugin from the Kanboard plugin manager in one click
- Download the zip file and decompress everything under the directory
plugins/GiteaWebhook
- Clone this repository into the folder
plugins/GiteaWebhook
Note: Plugin folder is case-sensitive.
- Gitea commit reference received
- Gitea commit close received
- Create a comment from an external provider
- Close a task
- On Kanboard, go to the project settings and choose the section Integrations
- Copy the Gitea webhook URL
- On Gitea, go to the project settings and go to the section Webhooks
- Add a new Gitea webhook and paste the Kanboard URL
- Choose action: Create a comment from an external provider
- Choose the event: Gitea commit reference received (or Gitea commit close received, see below)
Use the keyword refs
followed by the taks-reference: refs #1234
.
The comment will contain the commit message and the URL to the commit. If the email of the commit author matches a Kanboard user, the comment will be attached to this user.
- Choose action: Close the task
- Choose the event: Gitea commit close received
When one or more commits are sent to Gitea, Kanboard will receive the information, each commit message with a task number included will be closed.
The plugin detects the follwing keywords followed by a task-reference: closes
, implements
, fixes
, example: closes #1234
If the task should be moved to another column, attach this event to the action Move the task to another column when assigned to a user as well. Please note that for this to work, the Kanboard task needs to be assigend to a user and live in the column defined during action setup.
If an additional comment should be created, you can also attach this event to the action Create a comment from an external provider