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

Function listOpenOffPRs

scripts/getCommitsForTesting.mjs:176–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

174}
175
176async function listOpenOffPRs() {
177 let allPRs = [];
178 let page = 1;
179 let lastPageSize;
180 do {
181 let res = await octokit.issues.listForRepo({
182 owner: 'adobe',
183 repo: 'react-spectrum',
184 state: 'open',
185 labels: 'test off PR',
186 per_page: 100,
187 page
188 });
189 allPRs.push(...res.data.filter(issue => issue.pull_request));
190 lastPageSize = res.data.length;
191 page++;
192 } while (lastPageSize === 100);
193 return allPRs;
194}
195
196async function listCommits(startDate, endDate) {
197 let start = new Date(startDate);

Callers 1

generateDataFunction · 0.85

Calls 2

pushMethod · 0.80
filterMethod · 0.65

Tested by

no test coverage detected