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 — tweak: make gh action ignore url mentions of opencode (#1531) · FellowTraveler/opencode@ae6e47b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • opencode.yml
  • packages/opencode/src/cli/cmd
    • github.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/opencode.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/opencode.yml
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ on:
77
jobs:
88
opencode:
99
if: |
10-
contains(github.event.comment.body, '/oc') ||
11-
contains(github.event.comment.body, '/opencode')
10+
contains(github.event.comment.body, ' /oc') ||
11+
startsWith(github.event.comment.body, '/oc') ||
12+
contains(github.event.comment.body, ' /opencode') ||
13+
startsWith(github.event.comment.body, '/opencode')
1214
runs-on: ubuntu-latest
1315
permissions:
1416
contents: read
@@ -24,4 +26,4 @@ jobs:
2426
env:
2527
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
2628
with:
27-
model: anthropic/claude-sonnet-4-20250514
29+
model: anthropic/claude-sonnet-4-20250514
Collapse file

‎packages/opencode/src/cli/cmd/github.ts‎

Copy file name to clipboardExpand all lines: packages/opencode/src/cli/cmd/github.ts
+7-5Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,10 @@ on:
318318
jobs:
319319
opencode:
320320
if: |
321-
contains(github.event.comment.body, '/oc') ||
322-
contains(github.event.comment.body, '/opencode')
321+
contains(github.event.comment.body, ' /oc') ||
322+
startsWith(github.event.comment.body, '/oc') ||
323+
contains(github.event.comment.body, ' /opencode') ||
324+
startsWith(github.event.comment.body, '/opencode')
323325
runs-on: ubuntu-latest
324326
permissions:
325327
contents: read
@@ -784,7 +786,7 @@ export const GithubRunCommand = cmd({
784786
console.log("Pushing to new branch...")
785787
await $`git add .`
786788
await $`git commit -m "${summary}
787-
789+
788790
Co-authored-by: ${actor} <${actor}@users.noreply.github.com>"`
789791
await $`git push -u origin ${branch}`
790792
}
@@ -793,7 +795,7 @@ Co-authored-by: ${actor} <${actor}@users.noreply.github.com>"`
793795
console.log("Pushing to local branch...")
794796
await $`git add .`
795797
await $`git commit -m "${summary}
796-
798+
797799
Co-authored-by: ${actor} <${actor}@users.noreply.github.com>"`
798800
await $`git push`
799801
}
@@ -805,7 +807,7 @@ Co-authored-by: ${actor} <${actor}@users.noreply.github.com>"`
805807

806808
await $`git add .`
807809
await $`git commit -m "${summary}
808-
810+
809811
Co-authored-by: ${actor} <${actor}@users.noreply.github.com>"`
810812
await $`git push fork HEAD:${remoteBranch}`
811813
}

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.