Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/docs-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:

jobs:
update-docs:
if: github.repository == 'sst/opencode'
if: github.repository == 'anomalyco/opencode'
runs-on: blacksmith-4vcpu-ubuntu-2404
permissions:
id-token: write
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:

- name: Run opencode
if: steps.commits.outputs.has_commits == 'true'
uses: sst/opencode/github@latest
uses: anomalyco/opencode/github@latest
env:
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .opencode/tool/github-pr-search.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Use this tool to search GitHub pull requests by title and description.

This tool searches PRs in the sst/opencode repository and returns LLM-friendly results including:
This tool searches PRs in the anomalyco/opencode repository and returns LLM-friendly results including:
- PR number and title
- Author
- State (open/closed/merged)
Expand Down
18 changes: 12 additions & 6 deletions packages/opencode/test/cli/github-remote.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,33 @@ import { test, expect } from "bun:test"
import { parseGitHubRemote } from "../../src/cli/cmd/github"

test("parses https URL with .git suffix", () => {
expect(parseGitHubRemote("https://github.com/sst/opencode.git")).toEqual({ owner: "sst", repo: "opencode" })
expect(parseGitHubRemote("https://github.com/anomalyco/opencode.git")).toEqual({
owner: "anomalyco",
repo: "opencode",
})
})

test("parses https URL without .git suffix", () => {
expect(parseGitHubRemote("https://github.com/sst/opencode")).toEqual({ owner: "sst", repo: "opencode" })
expect(parseGitHubRemote("https://github.com/anomalyco/opencode")).toEqual({ owner: "anomalyco", repo: "opencode" })
})

test("parses git@ URL with .git suffix", () => {
expect(parseGitHubRemote("[email protected]:sst/opencode.git")).toEqual({ owner: "sst", repo: "opencode" })
expect(parseGitHubRemote("[email protected]:anomalyco/opencode.git")).toEqual({ owner: "anomalyco", repo: "opencode" })
})

test("parses git@ URL without .git suffix", () => {
expect(parseGitHubRemote("[email protected]:sst/opencode")).toEqual({ owner: "sst", repo: "opencode" })
expect(parseGitHubRemote("[email protected]:anomalyco/opencode")).toEqual({ owner: "anomalyco", repo: "opencode" })
})

test("parses ssh:// URL with .git suffix", () => {
expect(parseGitHubRemote("ssh://[email protected]/sst/opencode.git")).toEqual({ owner: "sst", repo: "opencode" })
expect(parseGitHubRemote("ssh://[email protected]/anomalyco/opencode.git")).toEqual({
owner: "anomalyco",
repo: "opencode",
})
})

test("parses ssh:// URL without .git suffix", () => {
expect(parseGitHubRemote("ssh://[email protected]/sst/opencode")).toEqual({ owner: "sst", repo: "opencode" })
expect(parseGitHubRemote("ssh://[email protected]/anomalyco/opencode")).toEqual({ owner: "anomalyco", repo: "opencode" })
})

test("parses http URL", () => {
Expand Down