diff options
| author | Dax Raad <[email protected]> | 2026-02-01 19:57:49 -0500 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2026-02-01 19:59:20 -0500 |
| commit | 4158d7cda87863a9b5a4eea29a40270b8a60a68f (patch) | |
| tree | 519f59c0dcaa0b8c9b9ca218527221250222da84 /script/beta.ts | |
| parent | 425abe2fbfc1a432f6b4c19dd89e59f2d7981fff (diff) | |
| download | opencode-4158d7cda87863a9b5a4eea29a40270b8a60a68f.tar.gz opencode-4158d7cda87863a9b5a4eea29a40270b8a60a68f.zip | |
ci: add --label beta filter to only process PRs with beta label
Diffstat (limited to 'script/beta.ts')
| -rwxr-xr-x | script/beta.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/script/beta.ts b/script/beta.ts index 264fa9bc6..50dc2ad78 100755 --- a/script/beta.ts +++ b/script/beta.ts @@ -7,6 +7,7 @@ interface PR { number: number title: string author: { login: string } + labels: Array<{ name: string }> } interface FailedPR { @@ -31,12 +32,13 @@ Please resolve this issue to include this PR in the next beta release.` } async function main() { - console.log("Fetching open PRs from team members...") + console.log("Fetching open PRs with beta label from team members...") const allPrs: PR[] = [] for (const member of Script.team) { try { - const stdout = await $`gh pr list --state open --author ${member} --json number,title,author --limit 100`.text() + const stdout = + await $`gh pr list --state open --author ${member} --label beta --json number,title,author,labels --limit 100`.text() const memberPrs: PR[] = JSON.parse(stdout) allPrs.push(...memberPrs) } catch { @@ -51,7 +53,7 @@ async function main() { return true }) - console.log(`Found ${prs.length} open PRs from team members`) + console.log(`Found ${prs.length} open PRs with beta label from team members`) if (prs.length === 0) { console.log("No team PRs to merge") |
