Last active
January 25, 2018 08:15
-
-
Save kseta/508cf913809228b57eff to your computer and use it in GitHub Desktop.
hubot-scriptのredmine.coffeeでRedmineと連携する ref: https://qiita.com/kseta/items/978dce4bfe0c8016b233
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd hubot | |
$ ./bin/hubot | |
... | |
# Issue ID : 21212 の場合 | |
Hubot> hubot show me #21212 | |
.... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["redis-brain.coffee", "tweet.coffee", "redmine.coffee"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
"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