webhook-templates
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -1,2 +0,2 @@ | ||
// Generated Fri, 18 May 2012 14:56:21 GMT | ||
// Generated Fri, 18 May 2012 17:10:02 GMT | ||
Template = require('./template'); | ||
@@ -7,10 +7,13 @@ dust = Template.Dust | ||
var templateNames = []; | ||
var templates = {}; | ||
var templateDetails = {}; | ||
var templateStrings = {}; | ||
module.exports = Template | ||
module.exports.templateNames = templateNames; | ||
module.exports.templates = templates; | ||
module.exports.templateDetails = templateDetails; | ||
module.exports.templateStrings = templateStrings; | ||
templateNames.push("github"); | ||
templates["github"] = "{!WebHookTemplate\n Name: GitHub\n Author: Benjie Gillam\n See: http://github.com/\n http://help.github.com/post-receive-hooks/\n!}\n{#last array=commits}{author.name}{/first} \npushed to branch `{#gitbranch ref=ref/}` \nof [{repository.owner.name}/{repository.name}]({repository.url}){?commits}:{/commits}\n{#reverse array=commits}\n {~n}{~s}{~s}- {message} ([`{#gitshorthash hash=id/}`]({url}))\n{/reverse}\n"; | ||
templateDetails["github"] = {"name":"GitHub","author":"Benjie Gillam http://www.benjiegillam.com/","format":"JSON","jsonfield":"payload","ips":["207.97.227.253","50.57.128.197","108.171.174.178"],"url":"http://help.github.com/post-receive-hooks/"}; | ||
templateStrings["github"] = "{!WebhookTemplate{\n \"name\" : \"GitHub\"\n, \"author\" : \"Benjie Gillam http://www.benjiegillam.com/\"\n, \"format\" : \"JSON\"\n, \"jsonfield\" : \"payload\"\n, \"ips\" : [\"207.97.227.253\", \"50.57.128.197\", \"108.171.174.178\"]\n, \"url\" : \"http://help.github.com/post-receive-hooks/\"\n}!}\n{#last array=commits}{author.name}{/first}{~s}\npushed to branch `{#gitbranch ref=ref/}`{~s}\nof [{repository.owner.name}/{repository.name}]({repository.url}){?commits}:{/commits}\n{#reverse array=commits}\n {~n}{~s}{~s}- {message} ([`{#gitshorthash hash=id/}`]({url}))\n{/reverse}\n"; | ||
(function(){dust.register("github",body_0);function body_0(chk,ctx){return chk.section(ctx.get("last"),ctx,{"block":body_1},{"array":ctx.get("commits")}).write(" pushed to branch `").section(ctx.get("gitbranch"),ctx,{},{"ref":ctx.get("ref")}).write("` of [").reference(ctx.getPath(false,["repository","owner","name"]),ctx,"h").write("/").reference(ctx.getPath(false,["repository","name"]),ctx,"h").write("](").reference(ctx.getPath(false,["repository","url"]),ctx,"h").write(")").exists(ctx.get("commits"),ctx,{"block":body_2},null).section(ctx.get("reverse"),ctx,{"block":body_3},{"array":ctx.get("commits")});}function body_1(chk,ctx){return chk.reference(ctx.getPath(false,["author","name"]),ctx,"h");}function body_2(chk,ctx){return chk.write(":");}function body_3(chk,ctx){return chk.write("\n - ").reference(ctx.get("message"),ctx,"h").write(" ([`").section(ctx.get("gitshorthash"),ctx,{},{"hash":ctx.get("id")}).write("`](").reference(ctx.get("url"),ctx,"h").write("))");}return body_0;})(); |
{ | ||
"name": "webhook-templates", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Dust.js templates for webhook payloads", | ||
@@ -5,0 +5,0 @@ "keywords": ["pim", "webhook", "templates", "dust", "dustjs"], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4754
65