GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ci: add --label beta filter to only process PRs with beta label · areai51/opencode@4158d7c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • script
    • beta.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎script/beta.ts‎

Copy file name to clipboardExpand all lines: script/beta.ts
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ interface PR {
77
number: number
88
title: string
99
author: { login: string }
10+
labels: Array<{ name: string }>
1011
}
1112

1213
interface FailedPR {
@@ -31,12 +32,13 @@ Please resolve this issue to include this PR in the next beta release.`
3132
}
3233

3334
async function main() {
34-
console.log("Fetching open PRs from team members...")
35+
console.log("Fetching open PRs with beta label from team members...")
3536

3637
const allPrs: PR[] = []
3738
for (const member of Script.team) {
3839
try {
39-
const stdout = await $`gh pr list --state open --author ${member} --json number,title,author --limit 100`.text()
40+
const stdout =
41+
await $`gh pr list --state open --author ${member} --label beta --json number,title,author,labels --limit 100`.text()
4042
const memberPrs: PR[] = JSON.parse(stdout)
4143
allPrs.push(...memberPrs)
4244
} catch {
@@ -51,7 +53,7 @@ async function main() {
5153
return true
5254
})
5355

54-
console.log(`Found ${prs.length} open PRs from team members`)
56+
console.log(`Found ${prs.length} open PRs with beta label from team members`)
5557

5658
if (prs.length === 0) {
5759
console.log("No team PRs to merge")

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.