tweak: make gh action ignore url mentions of opencode (#1531)

This commit is contained in:
Aiden Cline 2025-08-02 09:31:23 -05:00 committed by GitHub
commit ae6e47bb42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 8 deletions

View file

@ -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

View file

@ -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