MCPcopy
hub / github.com/vercel/next.js / getSectionForPullRequest

Function getSectionForPullRequest

release.js:36–47  ·  view source on GitHub ↗
(pullRequest)

Source from the content-addressed store, hash-verified

34}
35
36const getSectionForPullRequest = (pullRequest) => {
37 const { labels } = pullRequest
38
39 // sections defined first will take priority
40 for (const [section, label] of Object.entries(sectionLabelMap)) {
41 if (labels.some((prLabel) => prLabel.name === label)) {
42 return section
43 }
44 }
45
46 return null
47}
48
49const groupByLabels = async (commits, github) => {
50 // Initialize the sections object with empty arrays

Callers 1

groupByLabelsFunction · 0.85

Calls 2

someMethod · 0.80
entriesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…