summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-08-02 09:31:23 -0500
committerGitHub <[email protected]>2025-08-02 09:31:23 -0500
commitae6e47bb42bbfcbb908cda28f4ec028a7335904e (patch)
tree16e2f101d341dd022f2531a038ac2864efaafdd0 /packages
parent42a5fcead42c01c932d00d59647844e29c137ac0 (diff)
downloadopencode-ae6e47bb42bbfcbb908cda28f4ec028a7335904e.tar.gz
opencode-ae6e47bb42bbfcbb908cda28f4ec028a7335904e.zip
tweak: make gh action ignore url mentions of opencode (#1531)
Diffstat (limited to 'packages')
-rw-r--r--packages/opencode/src/cli/cmd/github.ts12
1 files changed, 7 insertions, 5 deletions
diff --git a/packages/opencode/src/cli/cmd/github.ts b/packages/opencode/src/cli/cmd/github.ts
index 3c18d1c5f..f33cb3ec7 100644
--- a/packages/opencode/src/cli/cmd/github.ts
+++ b/packages/opencode/src/cli/cmd/github.ts
@@ -318,8 +318,10 @@ on:
jobs:
opencode:
if: |
- contains(github.event.comment.body, '/oc') ||
- contains(github.event.comment.body, '/opencode')
+ contains(github.event.comment.body, ' /oc') ||
+ startsWith(github.event.comment.body, '/oc') ||
+ contains(github.event.comment.body, ' /opencode') ||
+ startsWith(github.event.comment.body, '/opencode')
runs-on: ubuntu-latest
permissions:
contents: read
@@ -784,7 +786,7 @@ export const GithubRunCommand = cmd({
console.log("Pushing to new branch...")
await $`git add .`
await $`git commit -m "${summary}
-
+
Co-authored-by: ${actor} <${actor}@users.noreply.github.com>"`
await $`git push -u origin ${branch}`
}
@@ -793,7 +795,7 @@ Co-authored-by: ${actor} <${actor}@users.noreply.github.com>"`
console.log("Pushing to local branch...")
await $`git add .`
await $`git commit -m "${summary}
-
+
Co-authored-by: ${actor} <${actor}@users.noreply.github.com>"`
await $`git push`
}
@@ -805,7 +807,7 @@ Co-authored-by: ${actor} <${actor}@users.noreply.github.com>"`
await $`git add .`
await $`git commit -m "${summary}
-
+
Co-authored-by: ${actor} <${actor}@users.noreply.github.com>"`
await $`git push fork HEAD:${remoteBranch}`
}