Skip to content

Commit ad6359b

Browse files
authored
Fix GHES release notes warning to point to latest stable GA release instead of RC (#56162)
1 parent e759d37 commit ad6359b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/release-notes/middleware/ghes-release-notes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { NextFunction, Response } from 'express'
22

33
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'
55
import { executeWithFallback } from '@/languages/lib/render-with-fallback.js'
66
import { getReleaseNotes } from './get-release-notes'
77
import 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) => {

0 commit comments

Comments
 (0)