From 1fe8d4d7ad32fecd40609140c0c7ff53016d8ddd Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Tue, 10 Mar 2026 14:08:55 -0400 Subject: [PATCH] ci: exclude draft PRs from beta labeling process to prevent unfinished work from being included in releases --- script/beta.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/beta.ts b/script/beta.ts index b0e6c2dcc..61f9cf862 100755 --- a/script/beta.ts +++ b/script/beta.ts @@ -79,7 +79,8 @@ async function fix(pr: PR, files: string[]) { async function main() { console.log("Fetching open PRs with beta label...") - const stdout = await $`gh pr list --state open --label beta --json number,title,author,labels --limit 100`.text() + const stdout = + await $`gh pr list --state open --draft=false --label beta --json number,title,author,labels --limit 100`.text() const prs: PR[] = JSON.parse(stdout).sort((a: PR, b: PR) => a.number - b.number) console.log(`Found ${prs.length} open PRs with beta label`)