Skip to content

Instantly share code, notes, and snippets.

@kseta
Last active January 25, 2018 08:15
Show Gist options
  • Save kseta/508cf913809228b57eff to your computer and use it in GitHub Desktop.
Save kseta/508cf913809228b57eff to your computer and use it in GitHub Desktop.
hubot-scriptのredmine.coffeeでRedmineと連携する ref: https://qiita.com/kseta/items/978dce4bfe0c8016b233
$ cd hubot
$ ./bin/hubot
...
# Issue ID : 21212 の場合
Hubot> hubot show me #21212
....
#!/bin/sh
#npm install
export PATH="node_modules/.bin:node_modules/hubot/node_modules/.bin:$PATH"
# Redmine Configurations
#export HUBOT_REDMINE_SSL=""
export HUBOT_REDMINE_BASE_URL="http://my-redmine-url"
export HUBOT_REDMINE_TOKEN="***************************(your API access key)"
export HUBOT_REDMINE_IGNORED_USERS=""
exec node_modules/.bin/hubot "$@"
["redis-brain.coffee", "tweet.coffee", "redmine.coffee"]
...
"dependencies": {
"hubot": ">= 2.6.0 < 3.0.0",
"hubot-scripts": ">= 2.5.0 < 3.0.0"
},
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment