MCPcopy Index your code
hub / github.com/adobe/react-spectrum / listCommits

Function listCommits

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

Source from the content-addressed store, hash-verified

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

Callers 1

generateDataFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected