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 11import type { NextFunction , Response } from 'express'
22
33import { 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'
55import { executeWithFallback } from '@/languages/lib/render-with-fallback.js'
66import { getReleaseNotes } from './get-release-notes'
77import type { Context , ExtendedRequest } from '@/types'
@@ -87,7 +87,7 @@ export default async function ghesReleaseNotesContext(
8787 // GHES release notes on docs started with 2.20 but older release notes exist on enterprise.github.com.
8888 // So we want to use _all_ GHES versions when calculating next and previous releases.
8989 req . context . latestPatch = req . context . ghesReleaseNotes ! [ 0 ] . version
90- req . context . latestRelease = all [ 0 ]
90+ req . context . latestRelease = latestStable
9191
9292 // Add convenience props for "Supported releases" section on GHES Admin landing page (NOT release notes).
9393 req . context . ghesReleases . forEach ( ( release ) => {
You can’t perform that action at this time.
0 commit comments