Skip to content

Commit 1fe8d4d

Browse files
committed
ci: exclude draft PRs from beta labeling process to prevent unfinished work from being included in releases
1 parent e443209 commit 1fe8d4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/beta.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ async function fix(pr: PR, files: string[]) {
7979
async function main() {
8080
console.log("Fetching open PRs with beta label...")
8181

82-
const stdout = await $`gh pr list --state open --label beta --json number,title,author,labels --limit 100`.text()
82+
const stdout =
83+
await $`gh pr list --state open --draft=false --label beta --json number,title,author,labels --limit 100`.text()
8384
const prs: PR[] = JSON.parse(stdout).sort((a: PR, b: PR) => a.number - b.number)
8485

8586
console.log(`Found ${prs.length} open PRs with beta label`)

0 commit comments

Comments
 (0)