1
0
mirror of synced 2025-12-25 02:17:36 -05:00

Merge branch 'main' of github.com:github/docs-internal into remove-fpt

This commit is contained in:
Sarah Schneider
2021-01-08 11:06:27 -05:00
443 changed files with 278 additions and 86 deletions

View File

@@ -11,6 +11,7 @@ module.exports = async (req, res, next) => {
// For example, free-pro-team@latest corresponds to dotcom,
// enterprise-server@2.22 corresponds to ghes-2.22,
// and github-ae@latest corresponds to ghae
if (!allVersions[req.context.currentVersion]) return next()
const webhookPayloadDir = allVersions[req.context.currentVersion].miscVersionName
const webhookPayloadsForCurrentVersion = webhookPayloads[webhookPayloadDir]