# Webhook for Redmine **Repository Path**: fxlysm/Webhook ## Basic Information - **Project Name**: Webhook for Redmine - **Description**: 针对Redmine 云之家 机器人 Webhook 消息通知 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-01-23 - **Last Updated**: 2024-01-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Redmine 云之家插件 ====================== A Redmine plugin posts webhook on creating and updating tickets. Author ------------------------------ * @liuyong 安装 ------------------------------ Type below commands: $ cd $RAILS_ROOT/plugins $ git clone https://gitee.com/fxlysm/Webhook.git $ rake redmine:plugins:migrate RAILS_ENV=production Then, restart your redmine. 通知数据示例 ------------------------------ ### Issue opened { "payload": { "issue": { "author": { "icon_url": "http://www.XXX", "identity_url": null, "lastname": "user", "firstname": "test", "mail": "test@example.com", "login": "test", "id": 3 }, "assignee": { "icon_url": "http://www.XXX, "identity_url": null, "lastname": "user", "firstname": "test", "mail": "test@example.com", "login": "test", "id": 3 }, "priority": { "name": "normal", "id": 2 }, "tracker": { "name": "bug", "id": 1 }, "parent_id": null, "root_id": 191, "closed_on": null, "updated_on": "2014-03-01T15:17:48Z", "created_on": "2014-03-01T15:17:48Z", "description": "I'm having a problem with this.", "subject": "Found a bug", "id": 191, "done_ratio": 0, "start_date": "2014-03-02", "due_date": null, "estimated_hours": null, "is_private": false, "lock_version": 0, "project": { "homepage": "", "created_on": "2013-01-12T11:50:26Z", "description": "", "name": "Test Project", "identifier": "test", "id": 4 }, "status": { "name": "new", "id": 1 } }, "action": "opened", "url": "https://example.com" } } ### Issue updated { "payload": { "url": "https://example.com" "issue": { "author": { "icon_url": "http://www.XXX", "identity_url": null, "lastname": "user", "firstname": "test", "mail": "test@example.com", "login": "test", "id": 3 }, "priority": { "name": "normal", "id": 2 }, "tracker": { "name": "bug", "id": 1 }, "parent_id": null, "root_id": 196, "closed_on": null, "updated_on": "2014-03-01T16:22:46Z", "created_on": "2014-03-01T15:44:22Z", "description": "test", "subject": "Found a bug", "id": 196, "done_ratio": 0, "start_date": "2014-03-02", "due_date": null, "estimated_hours": null, "is_private": false, "lock_version": 2, "project": { "homepage": "", "created_on": "2013-01-12T11:50:26Z", "description": "", "name": "Test Project", "identifier": "test", "id": 4 }, "status": { "name": "normal", "id": 1 } }, "action": "updated" } } Requirements ------------------------------ * Redmine 5.0 or later ### 注意 本代码由 redmine_webhook 改编,更改通知数据 [redmine_webhook](https://github.com/suer/redmine_webhook)