Add a counter.py script #30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: opencode-e2e-test | |
| on: | |
| issue_comment: | |
| types: [created] | |
| pull_request_review_comment: | |
| types: [created] | |
| issues: | |
| types: [assigned, opened] | |
| jobs: | |
| opencode: | |
| if: | | |
| (github.event_name == 'issues' && (github.event.action == 'assigned' || github.event.action == 'opened')) || | |
| 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: | |
| id-token: write | |
| contents: write | |
| pull-requests: write | |
| issues: write | |
| steps: | |
| - name: Checkout test repo | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Clone and install opencode from fork | |
| run: | | |
| git clone --depth 1 --branch feat/github-issue-assignment https://github.com/dzianisv/opencode.git /tmp/opencode-src | |
| cd /tmp/opencode-src | |
| bun install --frozen-lockfile | |
| - name: Run opencode github run | |
| run: bun run --cwd /tmp/opencode-src/packages/opencode --conditions=browser ./src/index.ts github run | |
| env: | |
| MODEL: opencode/gpt-5-nano | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |