1
0
mirror of synced 2025-12-22 03:16:52 -05:00
Files
docs/components/release-notes/types.ts
Sarah Schneider b7f48ea2c1 Support GHAE internal-only semantic versioning (#29178)
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
2022-09-22 08:26:58 +02:00

49 lines
1.1 KiB
TypeScript

export type CurrentVersion = {
plan: string
planTitle: string
versionTitle: string
currentRelease: string
}
export type GHESMessage = {
ghes_release_notes_upgrade_patch_only: string
ghes_release_notes_upgrade_release_only: string
ghes_release_notes_upgrade_patch_and_release: string
}
type ReleaseNoteSection =
| {
heading?: string
notes: Array<string>
}
| string
export type ReleaseNotePatch = {
patchVersion: string
version: string
downloadVersion: string
release: string
intro: string
date: string
friendlyDate: string
title: string
release_candidate?: boolean
currentWeek: boolean
sections: Record<string, Array<ReleaseNoteSection>>
}
export type GHAEReleaseNotesContextT = {
releaseNotes: Array<ReleaseNotePatch>
releases: Array<{ version: string; patches: Array<ReleaseNotePatch> }>
currentVersion: CurrentVersion
}
export type GHESReleaseNotesContextT = {
latestPatch: string
latestRelease: string
currentVersion: CurrentVersion
releaseNotes: Array<ReleaseNotePatch>
releases: Array<{ version: string; patches: Array<ReleaseNotePatch> }>
message: GHESMessage
}