parent
42a5fcead4
commit
ae6e47bb42
|
|
@ -7,8 +7,10 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
opencode:
|
opencode:
|
||||||
if: |
|
if: |
|
||||||
contains(github.event.comment.body, '/oc') ||
|
contains(github.event.comment.body, ' /oc') ||
|
||||||
contains(github.event.comment.body, '/opencode')
|
startsWith(github.event.comment.body, '/oc') ||
|
||||||
|
contains(github.event.comment.body, ' /opencode') ||
|
||||||
|
startsWith(github.event.comment.body, '/opencode')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
@ -24,4 +26,4 @@ jobs:
|
||||||
env:
|
env:
|
||||||
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||||
with:
|
with:
|
||||||
model: anthropic/claude-sonnet-4-20250514
|
model: anthropic/claude-sonnet-4-20250514
|
||||||
|
|
|
||||||
|
|
@ -318,8 +318,10 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
opencode:
|
opencode:
|
||||||
if: |
|
if: |
|
||||||
contains(github.event.comment.body, '/oc') ||
|
contains(github.event.comment.body, ' /oc') ||
|
||||||
contains(github.event.comment.body, '/opencode')
|
startsWith(github.event.comment.body, '/oc') ||
|
||||||
|
contains(github.event.comment.body, ' /opencode') ||
|
||||||
|
startsWith(github.event.comment.body, '/opencode')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
@ -784,7 +786,7 @@ export const GithubRunCommand = cmd({
|
||||||
console.log("Pushing to new branch...")
|
console.log("Pushing to new branch...")
|
||||||
await $`git add .`
|
await $`git add .`
|
||||||
await $`git commit -m "${summary}
|
await $`git commit -m "${summary}
|
||||||
|
|
||||||
Co-authored-by: ${actor} <${actor}@users.noreply.github.com>"`
|
Co-authored-by: ${actor} <${actor}@users.noreply.github.com>"`
|
||||||
await $`git push -u origin ${branch}`
|
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...")
|
console.log("Pushing to local branch...")
|
||||||
await $`git add .`
|
await $`git add .`
|
||||||
await $`git commit -m "${summary}
|
await $`git commit -m "${summary}
|
||||||
|
|
||||||
Co-authored-by: ${actor} <${actor}@users.noreply.github.com>"`
|
Co-authored-by: ${actor} <${actor}@users.noreply.github.com>"`
|
||||||
await $`git push`
|
await $`git push`
|
||||||
}
|
}
|
||||||
|
|
@ -805,7 +807,7 @@ Co-authored-by: ${actor} <${actor}@users.noreply.github.com>"`
|
||||||
|
|
||||||
await $`git add .`
|
await $`git add .`
|
||||||
await $`git commit -m "${summary}
|
await $`git commit -m "${summary}
|
||||||
|
|
||||||
Co-authored-by: ${actor} <${actor}@users.noreply.github.com>"`
|
Co-authored-by: ${actor} <${actor}@users.noreply.github.com>"`
|
||||||
await $`git push fork HEAD:${remoteBranch}`
|
await $`git push fork HEAD:${remoteBranch}`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue