Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Commit 3ca216d

Browse files
Merge pull request #1207 from pedrogimenez/patch-1
Fix wrong conditional
2 parents 717b0bf + ea25656 commit 3ca216d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/scripts/github-commiters.coffee

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ module.exports = (robot) ->
4747
else if commits.length == 0
4848
msg.send "Achievement unlocked: [LIKE A BOSS] no commits found!"
4949
else
50-
unless process.env.HUBOT_GITHUB_API
51-
msg.send "https://github.com/#{repo}"
52-
else
53-
ghe_url = base_url.replace /\/api\/v3/, ''
54-
msg.send "#{ghe_url}/#{repo}"
55-
response_handler commits
50+
if process.env.HUBOT_GITHUB_API
51+
base_url = base_url.replace /\/api\/v3/, ''
52+
msg.send "#{base_url}/#{repo}"
53+
response_handler commits

0 commit comments

Comments
 (0)