Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
fix: use auth header instead of token (#59)
Browse files Browse the repository at this point in the history
davisshaver authored Apr 5, 2023
1 parent 59078c6 commit a2440af
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hubot-code-review",
"version": "1.3.0",
"version": "1.3.1",
"author": "Alley Interactive <ops+hubot@alley.co>",
"description": "A Hubot script for GitHub code review on Slack",
"main": "index.coffee",
2 changes: 1 addition & 1 deletion src/lib/msgRoomName.coffee
Original file line number Diff line number Diff line change
@@ -6,9 +6,9 @@ module.exports = (msg, next) ->
if msg.robot.adapterName is "slack"
msg.robot.http("https://slack.com/api/conversations.info")
.query({
token: process.env.HUBOT_SLACK_TOKEN
channel: msg.message.room
})
.header('Authorization', 'Bearer ' + process.env.HUBOT_SLACK_TOKEN )
.get() (err, response, body) ->
channel = JSON.parse(body)
next channel.channel.name

0 comments on commit a2440af

Please sign in to comment.