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 — chore: build beta from v2 (#41627) · plazoleta-dev/FlupCode@fbc0d8e

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
+18-16Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async function build() {
8686
console.log(" Running final build smoke check...")
8787

8888
try {
89-
await $`./script/build.ts --single`.cwd("packages/opencode")
89+
await $`./script/build.ts --single`.cwd("packages/cli")
9090
return true
9191
} catch (err) {
9292
console.log(`Build failed: ${err}`)
@@ -200,7 +200,7 @@ async function smoke(prs: PR[], applied: number[]) {
200200
"The beta merge batch is complete, but the deterministic final smoke check failed.",
201201
`Merged PRs on HEAD:\n${done}`,
202202
"Run `bun typecheck` at the repo root.",
203-
"Run `./script/build.ts --single` in `packages/opencode`.",
203+
"Run `./script/build.ts --single` in `packages/cli`.",
204204
"Fix any merge-caused issues until both commands pass.",
205205
"Do not create a commit.",
206206
].join("\n")
@@ -216,25 +216,27 @@ async function smoke(prs: PR[], applied: number[]) {
216216
return commitSmokeChanges()
217217
}
218218

219+
async function checkout() {
220+
console.log("Fetching latest v2 branch...")
221+
await $`git fetch origin v2`
222+
223+
console.log("Checking out beta branch...")
224+
await $`git checkout -B beta origin/v2`
225+
226+
console.log("Installing v2 dependencies...")
227+
await $`bun install --frozen-lockfile`
228+
}
229+
219230
async function main() {
220231
console.log("Fetching open PRs with beta label...")
221232

222233
const stdout =
223-
await $`gh pr list --state open --draft=false --label beta --json number,title,author,labels --limit 100`.text()
234+
await $`gh pr list --state open --draft=false --base v2 --label beta --json number,title,author,labels --limit 100`.text()
224235
const prs: PR[] = JSON.parse(stdout).sort((a: PR, b: PR) => a.number - b.number)
225236

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

228-
if (prs.length === 0) {
229-
console.log("No team PRs to merge")
230-
return
231-
}
232-
233-
console.log("Fetching latest dev branch...")
234-
await $`git fetch origin dev`
235-
236-
console.log("Checking out beta branch...")
237-
await $`git checkout -B beta origin/dev`
239+
await checkout()
238240

239241
const applied: number[] = []
240242
const failed: FailedPR[] = []
@@ -262,7 +264,7 @@ async function main() {
262264
if (!(await fix(pr, files, prs, applied, idx))) {
263265
await cleanup()
264266
failed.push({ number: pr.number, title: pr.title, reason: "Merge conflicts" })
265-
await commentOnPR(pr.number, "Merge conflicts with dev branch")
267+
await commentOnPR(pr.number, "Merge conflicts with v2 branch")
266268
continue
267269
}
268270
} else {
@@ -318,7 +320,7 @@ async function main() {
318320
await $`git fetch origin beta`
319321

320322
const localTree = (await $`git rev-parse beta^{tree}`.text()).trim()
321-
const remoteTrees = (await $`git log origin/dev..origin/beta --format=%T`.text()).split("\n")
323+
const remoteTrees = (await $`git log origin/v2..origin/beta --format=%T`.text()).split("\n")
322324

323325
const matchIdx = remoteTrees.indexOf(localTree)
324326
if (matchIdx !== -1) {
@@ -335,7 +337,7 @@ async function main() {
335337
await $`git fetch origin beta`
336338

337339
const validatedTree = (await $`git rev-parse beta^{tree}`.text()).trim()
338-
const remoteTreesAfterSmoke = (await $`git log origin/dev..origin/beta --format=%T`.text()).split("\n")
340+
const remoteTreesAfterSmoke = (await $`git log origin/v2..origin/beta --format=%T`.text()).split("\n")
339341
const matchIdxAfterSmoke = remoteTreesAfterSmoke.indexOf(validatedTree)
340342
if (matchIdxAfterSmoke !== -1) {
341343
if (matchIdxAfterSmoke !== 0) {

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.