We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 345ab98 commit 9b5b81fCopy full SHA for 9b5b81f
1 file changed
script/check-internal-links.js
@@ -4,6 +4,7 @@ const linkinator = require('linkinator')
4
const checker = new linkinator.LinkChecker()
5
const { deprecated, latest } = require('../lib/enterprise-server-releases')
6
const englishRoot = 'http://localhost:4002/en'
7
+const allowedVersions = ['dotcom', 'enterprise-server', 'github-ae']
8
9
// [start-readme]
10
//
@@ -53,7 +54,7 @@ if (process.env.VERSION === 'dotcom') {
53
54
main()
55
56
async function main () {
- process.env.VERSION
57
+ process.env.VERSION && allowedVersions.includes(process.env.VERSION)
58
? console.log(`Checking internal links for version ${process.env.VERSION}!\n`)
59
: console.log('Checking internal links for all versions!\n')
60
0 commit comments