File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { next , latest } from './enterprise-server-releases.js'
2
2
import versionSatisfiesRange from './version-satisfies-range.js'
3
3
4
- // Special handling for frontmatter that evalues to the next GHES release number or a hardcoded `next`:
5
- // we don't want to return it as an applicable version or it will become a permalink,
6
- // but we also don't want to throw an error if no other versions are found.
4
+ // Special handling for frontmatter that evalues to the next GHES release number,
5
+ // GHAE `issue-\d{4}` or a hardcoded `next`. We don't want to return any of these
6
+ // as an applicable version or it will become a permalink, but we also don't want
7
+ // to throw an error if no other versions are found.
7
8
export default function checkIfNextVersionOnly ( value ) {
8
9
if ( value === '*' ) return false
9
10
10
- const ghesNextVersionOnly =
11
+ const ghesNextVersion =
11
12
versionSatisfiesRange ( next , value ) && ! versionSatisfiesRange ( latest , value )
12
13
13
- return ghesNextVersionOnly || value === 'next'
14
+ const ghaeUpcomingVersion = value . includes ( 'issue-' )
15
+
16
+ return ghesNextVersion || ghaeUpcomingVersion || value === 'next'
14
17
}
You can’t perform that action at this time.
0 commit comments