temp: limit 2 for ci test

This commit is contained in:
Coco Sheng
2026-05-14 17:15:49 -04:00
parent 3fdc43734b
commit ccd1854c66
5 changed files with 75 additions and 114 deletions
+2 -1
View File
@@ -79,7 +79,7 @@ module.exports = async ({ github, context, core }) => {
async function processItems(query, callback) {
core.info(`Searching: ${query}`);
try {
const items = await github.paginate(
let items = await github.paginate(
github.rest.search.issuesAndPullRequests,
{
q: query,
@@ -88,6 +88,7 @@ module.exports = async ({ github, context, core }) => {
order: 'asc',
},
);
items = items.slice(0, 2);
core.info(`Found ${items.length} items.`);
for (const item of items) {
try {