Skip to content

Commit

Permalink
Fix missing webhook payloads on marketplace API page (github#16641)
Browse files Browse the repository at this point in the history
* Also check for github-marketplace path

* Check for webhook, no s
  • Loading branch information
JasonEtco committed Nov 27, 2020
1 parent 4484068 commit 1750f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/contextualizers/webhooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1750f3d

Please sign in to comment.