-
-
Save johnciacia/cf191d67410f5a1f3d42 to your computer and use it in GitHub Desktop.
Spit out the JIRA link to a ticket given a number
This file contains 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/FRMN-' + 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