MCPcopy Index your code
hub / github.com/github/docs / processUpcomingChanges

Function processUpcomingChanges

src/graphql/scripts/utils/process-upcoming-changes.js:6–16  ·  view source on GitHub ↗
(upcomingChangesYml)

Source from the content-addressed store, hash-verified

4import renderContent from '../../../../lib/render-content/index.js'
5
6export default async function processUpcomingChanges(upcomingChangesYml) {
7 const upcomingChanges = yaml.load(upcomingChangesYml).upcoming_changes
8
9 for (const change of upcomingChanges) {
10 change.date = change.date.slice(0, 10)
11 change.reason = await renderContent(change.reason)
12 change.description = await renderContent(change.description)
13 }
14
15 return groupBy(upcomingChanges.reverse(), 'date')
16}

Callers 1

mainFunction · 0.85

Calls 1

renderContentFunction · 0.85

Tested by

no test coverage detected