Skip to content

Commit a39d36c

Browse files
committed
chore: revert test overrides and restore production workflow
1 parent bb3e624 commit a39d36c

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

.github/scripts/review-sync/index.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,24 +74,22 @@ module.exports = async ({ github, context, core }) => {
7474
return;
7575
}
7676

77-
// ── 2. Fetch all open non-draft PRs ─────────────────────────────────────
78-
console.log(`\n--- Fetching Open PRs for ${owner}/${repo} ---`);
79-
80-
const { data: allPRs } = await github.rest.pulls.list({
77+
// ── 2. Fetch all open non-draft PRs (paginated) ──────────────────────────
78+
console.log('\n--- Fetching Open PRs ---');
79+
const allPRs = await github.paginate(github.rest.pulls.list, {
8180
owner,
8281
repo,
8382
state: 'open',
8483
per_page: 100,
8584
});
8685

87-
console.log(` Successfully fetched ${allPRs.length} total open PRs.`);
88-
8986
const prs = allPRs.filter((pr) => !pr.draft);
87+
console.log(` Total open PRs: ${allPRs.length}`);
9088
console.log(` Non-draft PRs to process: ${prs.length}`);
9189
console.log(` Draft PRs skipped: ${allPRs.length - prs.length}`);
9290

9391
if (prs.length === 0) {
94-
console.log(' No non-draft PRs found. Check if your PR is a Draft or targeting the wrong repo.');
92+
console.log(' No non-draft PRs found. Exiting.');
9593
return;
9694
}
9795

.github/workflows/review-sync.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ name: Review Queue Label Sync
1414
on:
1515
schedule:
1616
- cron: '*/30 * * * *'
17-
push:
18-
branches:
19-
- feature/review-sync-phase1
2017
workflow_dispatch:
2118
inputs:
2219
dry_run:
@@ -36,7 +33,7 @@ concurrency:
3633

3734
jobs:
3835
sync:
39-
runs-on: ubuntu-latest
36+
runs-on: hl-sdk-py-lin-md
4037
env:
4138
DRY_RUN: ${{ inputs.dry_run || 'false' }}
4239

0 commit comments

Comments
 (0)