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: allow commits on top of beta PRs (#11924) · kikuchan/opencode@6eb043a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • nix-hashes.yml
  • script
    • beta.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/nix-hashes.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/nix-hashes.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ permissions:
66
on:
77
workflow_dispatch:
88
push:
9-
branches: [dev]
9+
branches: [dev, beta]
1010
paths:
1111
- "bun.lock"
1212
- "package.json"
Collapse file

‎script/beta.ts‎

Copy file name to clipboardExpand all lines: script/beta.ts
+9-4Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,15 @@ async function main() {
128128
await $`git fetch origin beta`
129129

130130
const localTree = await $`git rev-parse beta^{tree}`.text()
131-
const remoteTree = await $`git rev-parse origin/beta^{tree}`.text()
132-
133-
if (localTree.trim() === remoteTree.trim()) {
134-
console.log("Beta branch has identical contents, no push needed")
131+
const remoteTrees = (await $`git log origin/dev..origin/beta --format=%T`.text()).split("\n")
132+
133+
const matchIdx = remoteTrees.indexOf(localTree.trim())
134+
if (matchIdx !== -1) {
135+
if (matchIdx !== 0) {
136+
console.log(`Beta branch contains this sync, but additional commits exist after it. Leaving beta branch as is.`)
137+
} else {
138+
console.log("Beta branch has identical contents, no push needed")
139+
}
135140
return
136141
}
137142

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.