File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/release-notes/middleware Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
import type { NextFunction , Response } from 'express'
2
2
3
3
import { formatReleases , renderPatchNotes } from '@/release-notes/lib/release-notes-utils'
4
- import { all } from '@/versions/lib/enterprise-server-releases.js'
4
+ import { all , latestStable } from '@/versions/lib/enterprise-server-releases.js'
5
5
import { executeWithFallback } from '@/languages/lib/render-with-fallback.js'
6
6
import { getReleaseNotes } from './get-release-notes'
7
7
import type { Context , ExtendedRequest } from '@/types'
@@ -87,7 +87,7 @@ export default async function ghesReleaseNotesContext(
87
87
// GHES release notes on docs started with 2.20 but older release notes exist on enterprise.github.com.
88
88
// So we want to use _all_ GHES versions when calculating next and previous releases.
89
89
req . context . latestPatch = req . context . ghesReleaseNotes ! [ 0 ] . version
90
- req . context . latestRelease = all [ 0 ]
90
+ req . context . latestRelease = latestStable
91
91
92
92
// Add convenience props for "Supported releases" section on GHES Admin landing page (NOT release notes).
93
93
req . context . ghesReleases . forEach ( ( release ) => {
You can’t perform that action at this time.
0 commit comments