mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-29 21:33:54 +00:00
ci: exclude draft PRs from beta labeling process to prevent unfinished work from being included in releases
This commit is contained in:
parent
e44320980d
commit
1fe8d4d7ad
@ -79,7 +79,8 @@ async function fix(pr: PR, files: string[]) {
|
|||||||
async function main() {
|
async function main() {
|
||||||
console.log("Fetching open PRs with beta label...")
|
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)
|
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`)
|
console.log(`Found ${prs.length} open PRs with beta label`)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user