MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getCommits

Function getCommits

utils/scripts/generate-release-notes.js:90–96  ·  view source on GitHub ↗
(previousTag, currentTag)

Source from the content-addressed store, hash-verified

88}
89
90async 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
98function categorizeCommits(commits, { mergeOnly, importantOnly }) {
99 const sections = {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected