MCPcopy Create free account
hub / github.com/adobe/react-spectrum / listCommits

Function listCommits

scripts/getCommitsForTesting.mjs:205–228  ·  view source on GitHub ↗
(startDate, endDate)

Source from the content-addressed store, hash-verified

203}
204
205async function listCommits(startDate, endDate) {
206 let start = new Date(startDate);
207 let end = new Date(endDate + 'T23:59:59.999Z');
208
209 let allCommits = [];
210 let page = 1;
211 let lastPageSize;
212 do {
213 let res = await octokit.repos.listCommits({
214 owner: 'adobe',
215 repo: 'react-spectrum',
216 sha: 'main',
217 since: start.toISOString(),
218 until: end.toISOString(),
219 per_page: 100,
220 page
221 });
222 allCommits.push(...res.data);
223 lastPageSize = res.data.length;
224 page++;
225 } while (lastPageSize === 100);
226
227 return allCommits;
228}
229
230async function getPR(num) {
231 let res = await octokit.pullRequests.get({

Callers 1

generateDataFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected