From 1750f3d48a32415d805f70ba3919d4944b752c53 Mon Sep 17 00:00:00 2001 From: Jason Etcovitch Date: Thu, 26 Nov 2020 20:42:31 -0500 Subject: [PATCH] Fix missing webhook payloads on marketplace API page (#16641) * Also check for github-marketplace path * Check for webhook, no s --- middleware/contextualizers/webhooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/contextualizers/webhooks.js b/middleware/contextualizers/webhooks.js index da2c12ffc914..c2663df1ca10 100644 --- a/middleware/contextualizers/webhooks.js +++ b/middleware/contextualizers/webhooks.js @@ -5,7 +5,7 @@ const nonEnterpriseDefaultVersion = require('../../lib/non-enterprise-default-ve const allVersions = require('../../lib/all-versions') module.exports = async (req, res, next) => { - if (!req.path.includes('webhooks')) return next() + if (!req.path.includes('webhook')) return next() // Get the name of the dir under lib/webhooks/static // For example, free-pro-team@latest corresponds to dotcom,