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

Commit

Permalink
Merge pull request #484 from CedricGatay/fix/trac
Browse files Browse the repository at this point in the history
Trac Hubot-Script
  • Loading branch information
tombell committed Jul 1, 2012
2 parents 2099b04 + 87792e0 commit 83e6e52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scripts/trac.coffee
Expand Up @@ -141,12 +141,12 @@ module.exports = (robot) ->

ticketid = response[0]
issue = response[3]
url = process.env.HUBOT_TRAC_URL+"/ticket/"+ticketid

if !ticketid
console.log 'Error understanding trac response', ticket, response
return

url = process.env.HUBOT_TRAC_URL+"/ticket/"+ticketid
msg.send "Trac \##{ticketid}: #{issue.summary}. #{issue.owner} / #{issue.status}, #{issue.milestone} #{url}"

# fetch a ticket using http scraping
Expand All @@ -155,7 +155,7 @@ module.exports = (robot) ->
['#ticket h2.summary', 'td[headers=h_owner]', '#trac-ticket-title .status', 'td[headers=h_milestone]']
(err, response) ->
console.log 'scrape response', response
url = process.env.HUBOT_TRAC_URL+"/ticket/"+ticketid
url = process.env.HUBOT_TRAC_URL+"/ticket/"+ticket
msg.send "Trac \##{ticket}: #{response[0]}. #{response[1]} / #{response[2]}, #{response[3]} #{url}"


Expand Down Expand Up @@ -217,4 +217,4 @@ module.exports = (robot) ->
robot.hear /([^\w]|^)r(\d+)(?=[^\w]|$)/ig, handleChangeset
# trigger on [123]
robot.hear /([^\w]|^)\[(\d+)\](?=[^\w]|$)/ig, handleChangeset


0 comments on commit 83e6e52

Please sign in to comment.