Redmine ã« Webhook ã追å ãããã©ã°ã¤ã³ãä½ã£ã
Redmine ã®ãã±ããä½æã»æ´æ°ã«ããã¯ãã¦ãä»ã®ãµã¤ãã« HTTP 㧠POST ããæ©è½ã追å ãããã©ã°ã¤ã³ãä½ãã¾ããã
https://github.com/suer/redmine_webhook
æ©è½
ããã¸ã§ã¯ãæ¯ã« POST ããå ãæå®ã§ãã¾ãã
ãããªæãã® JSON ã POST ãããããã«ãªãã¾ãã
{ "payload": { "issue": { "author": { "icon_url": "http://www.gravatar.com/avatar/example", "identity_url": null, "lastname": "user", "firstname": "test", "mail": "[email protected]", "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" } }
ç°å¢
Redmine 2.4
ã¤ã³ã¹ãã¼ã«
1. 以ä¸ã®ããã«ãã©ã°ã¤ã³ãã¤ã³ã¹ãã¼ã«ããã
$ cd $RAILS_ROOT/plugins $ git clone git://github.com/suer/redmine_webhook.git $ rake redmine:plugins:migrate RAILS_ENV=production
2. Redmine ãåèµ·å