-
-
Save davidosomething/ecea3ca7e08362660882 to your computer and use it in GitHub Desktop.
Spit out the JIRA link to a ticket given a number
This file contains hidden or 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
module['exports'] = function echoHttp (hook) { | |
var link = 'https://tools.timeinc.net/jira/browse/TIM-' + hook.params.text; | |
var body = [ | |
'<' + link + '>' | |
].join(''); | |
hook.res.writeHead(200, { | |
'Content-Length': body.length, | |
'Content-Type': 'text/html' | |
}); | |
hook.res.end(body); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment