Light mapping of the Redmine REST API that allows hubot access to some basic redmine tasks. Once you have a redmine user (preferably one with enough access to modify tickets), add the following to your heroku/etc. config:
heroku config:add HUBOT_REDMINE_BASE_URL="http://redmine.your-server.com"
heroku config:add HUBOT_REDMINE_TOKEN="your api token here"
If using over SSL, add the following to your heroku config:
heroku config:add HUBOT_REDMINE_SSL=1
- Hubot show me [issue id]
- Hubot redmine me [issue id]
- Hubot show my issues
- Hubot show [user]'s issues ** [user] will attempt to match on redmine firstname or login
- Hubot assign [issue id] to [user]
- Hubot update [issue id] with "[comments]"
- Hubot add issue to "[project]" [traker id] with "[subject]" ** [tracker id] is optional and represent the number matching literal value Bug/Feature/...
- Hubot link me [issue id]
- Hubot set [issue id] to 100% "[comments]"
- Hubot add [hours] hours to [issue id] "[comments]"
-
hubot #[issue id]
response
#[issue id] (tracker name) subject issue url
-
自分のhubotを作成
% hubot --create <path>
-
移動
% cd <above path>
-
package.jsonを編集 (すでにhubotを作成済みの場合はここから)
"dependencies": { : : "hubot-redmine": "git://github.com/mistymagich/hubot-redmine.git" },
-
npm installしてインストール
-
external-scripts.jsonを編集
[ "hubot-redmine/src/scripts/redmine.coffee" ]
-
hubotの起動スクリプトに環境変数を追加
HUBOT_REDMINE_BASE_URL="REDMINEのURL" HUBOT_REDMINE_TOKEN="APIアクセスキー(redmine->「個人設定」の右側「APIアクセスキー」の値)"