The best way to control Claude Code, Codex and more from any computer or phone

main
yml 40 lines 1.36 KB
Raw
1 name: Effect bot
2
3 on:
4 issue_comment:
5 types: [created]
6
7 permissions: {}
8
9 jobs:
10 relay:
11 if: >-
12 github.repository == 'Effect-TS/effect' &&
13 github.event.comment.user.login != 'effect-bot' &&
14 startsWith(github.event.comment.body, '@effect-bot')
15 runs-on: ubuntu-latest
16 timeout-minutes: 5
17 permissions:
18 contents: read
19 issues: write
20 pull-requests: write
21 steps:
22 # Never check out the PR head/merge ref. Execute only default-branch code.
23 - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
24 with:
25 repository: Effect-TS/effect
26 ref: ${{ github.event.repository.default_branch }}
27 persist-credentials: false
28 sparse-checkout: scripts/effect-bot.mjs
29 sparse-checkout-cone-mode: false
30 - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
31 with:
32 node-version: 24
33 # No dependency install, local actions, build, or PR-controlled code.
34 # GITHUB_EVENT_PATH is read as JSON by the trusted helper.
35 - name: Relay maintainer mention
36 run: node scripts/effect-bot.mjs
37 env:
38 GITHUB_TOKEN: ${{ github.token }}
39 MULTICA_EFFECT_BOT_WEBHOOK_URL: ${{ secrets.MULTICA_EFFECT_BOT_WEBHOOK_URL }}
40 MULTICA_EFFECT_BOT_WEBHOOK_SECRET: ${{ secrets.MULTICA_EFFECT_BOT_WEBHOOK_SECRET }}