Просмотр исходного кода

ci: exclude draft PRs from beta labeling process to prevent unfinished work from being included in releases

Dax Raad 1 месяц назад
Родитель
Сommit
1fe8d4d7ad
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      script/beta.ts

+ 2 - 1
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`)