Skip to content

Commit e01f23f

Browse files
committed
add comments
1 parent f66d1a4 commit e01f23f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

script/enterprise-server-deprecations/remove-static-files.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const supportedEnterpriseVersions = Object.values(allVersions).filter(v => v.pla
2121

2222
// webhooks and GraphQL
2323
const supportedMiscVersions = supportedEnterpriseVersions.map(v => v.miscVersionName)
24+
// The miscBaseName is the same for all GHES versions (currently `ghes-`), so we can just grab the first one
2425
const miscBaseName = supportedEnterpriseVersions.map(v => v.miscBaseName)[0]
2526

2627
;[graphqlDataDir, graphqlStaticDir, webhooksStaticDir].forEach(dir => {
@@ -29,6 +30,7 @@ const miscBaseName = supportedEnterpriseVersions.map(v => v.miscBaseName)[0]
2930

3031
// REST
3132
const supportedOpenApiVersions = supportedEnterpriseVersions.map(v => v.openApiVersionName)
33+
// The openApiBaseName is the same for all GHES versions (currently `ghes-`), so we can just grab the first one
3234
const openApiBaseName = supportedEnterpriseVersions.map(v => v.openApiBaseName)[0]
3335

3436
;[restDecoratedDir, restDereferencedDir].forEach(dir => {

0 commit comments

Comments
 (0)