(previousTag, currentTag)
| 88 | } |
| 89 | |
| 90 | async function getCommits(previousTag, currentTag) { |
| 91 | const url = `https://api.github.com/repos/${owner}/${repo}/compare/${previousTag}...${currentTag}`; |
| 92 | const res = await fetch(url, { headers }); |
| 93 | if (!res.ok) throw new Error(`Failed to fetch commits: ${res.status}`); |
| 94 | const data = await res.json(); |
| 95 | return data.commits || []; |
| 96 | } |
| 97 | |
| 98 | function categorizeCommits(commits, { mergeOnly, importantOnly }) { |
| 99 | const sections = { |