-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Setting HUBOT_TEAM_PATH doesn't seem to do anything #1
Comments
Hi @evansagge are you using Slack? I am seeing similar behavior. I'd like to map github mentions of @jasonm to Slack mentions of $ heroku config:get HUBOT_TEAM_PATH
hubot-github-comment-notifier-team-config.json
$ cat hubot-github-comment-notifier-team-config.json
{
"@jasonm": "<@jason>"
} Here are the hubot logs from adding a new comment:
But the I've also tried with a config JSON without the angle brackets - e.g. We're using the latest version of $ npm list hubot-slack
hosted-hubot@2.7.1 /Users/jason/dev/minerva-hubot
└── hubot-slack@3.4.2 which should include slackapi/hubot-slack#193 which enabled Did you end up finding a solution for this? If not, @yujiosaka any thoughts on what I might do to troubleshoot further? Thanks! |
Ah, I think I've figured out my issue. Since the configuration file is required from $ heroku run bash
Running bash on minerva-hubot... up, run.2749
~ $ grep "require.*process" node_modules/hubot-github-comment-notifier/lib/index.coffee
team = try require process.env.HUBOT_TEAM_PATH
~ $ echo $HUBOT_TEAM_PATH
../../../hubot-github-comment-notifier-team-config.json
~ $ ls hubot-github-comment-notifier-team-config.json
hubot-github-comment-notifier-team-config.json
~ $ pwd
/app
~ $ exit Now my mentions map correctly! team = try require path.join(process.env.PWD, process.env.HUBOT_TEAM_PATH) ? |
No description provided.
The text was updated successfully, but these errors were encountered: