MCPcopy Create free account
hub / github.com/github/docs / cleanMessagesFromChanges

Function cleanMessagesFromChanges

src/graphql/scripts/build-changelog.js:187–193  ·  view source on GitHub ↗
(changes)

Source from the content-addressed store, hash-verified

185 * @return {Array<string>}
186 */
187export function cleanMessagesFromChanges(changes) {
188 return changes.map(function (change) {
189 // replace single quotes around graphql names with backticks,
190 // to match previous behavior from graphql-schema-comparator
191 return change.message.replace(/'([a-zA-Z. :!]+)'/g, '`$1`')
192 })
193}
194
195/**
196 * Split `changesToReport` into two parts,

Callers 1

createChangelogEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected