(pullRequest)
| 34 | } |
| 35 | |
| 36 | const 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 | |
| 49 | const groupByLabels = async (commits, github) => { |
| 50 | // Initialize the sections object with empty arrays |
no test coverage detected
searching dependent graphs…