We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45660b2 commit 3194a2dCopy full SHA for 3194a2d
1 file changed
middleware/contextualizers/webhooks.js
@@ -11,6 +11,7 @@ module.exports = async (req, res, next) => {
11
// For example, free-pro-team@latest corresponds to dotcom,
12
// enterprise-server@2.22 corresponds to ghes-2.22,
13
// and github-ae@latest corresponds to ghae
14
+ if (!allVersions[req.context.currentVersion]) return next()
15
const webhookPayloadDir = allVersions[req.context.currentVersion].miscVersionName
16
17
const webhookPayloadsForCurrentVersion = webhookPayloads[webhookPayloadDir]
0 commit comments