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); |
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
/** | |
* Hook.io - fortune theme committed to WordPress VIP | |
* | |
* Hosted: | |
* | |
* | |
* @see https://github.com/TimeInc/fortune/blob/master/wpcom-meta.php | |
* @see http://lobby.vip.wordpress.com/2014/03/05/commit-webhook/ | |
* | |
* WordPress posts to wpcom-meta on SVN commit |