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

Function listOpenOffPRs

scripts/getCommitsForTesting.mjs:185–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183}
184
185async function listOpenOffPRs() {
186 let allPRs = [];
187 let page = 1;
188 let lastPageSize;
189 do {
190 let res = await octokit.issues.listForRepo({
191 owner: 'adobe',
192 repo: 'react-spectrum',
193 state: 'open',
194 labels: 'test off PR',
195 per_page: 100,
196 page
197 });
198 allPRs.push(...res.data.filter(issue => issue.pull_request));
199 lastPageSize = res.data.length;
200 page++;
201 } while (lastPageSize === 100);
202 return allPRs;
203}
204
205async function listCommits(startDate, endDate) {
206 let start = new Date(startDate);

Callers 1

generateDataFunction · 0.85

Calls 2

pushMethod · 0.80
filterMethod · 0.65

Tested by

no test coverage detected