mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-30 13:22:51 +00:00
claude
This commit is contained in:
@@ -44,6 +44,10 @@ jobs:
|
||||
with:
|
||||
node-version: 24
|
||||
- run: npm ci
|
||||
# The claude-cron package has its own node_modules with the SDKs that
|
||||
# its tests transitively need. Root vitest discovers those tests but
|
||||
# can't resolve their imports unless this is installed.
|
||||
- run: cd scripts/claude-cron && npm ci --no-audit --no-fund --ignore-scripts
|
||||
- run: npm run test:coverage
|
||||
|
||||
eslint:
|
||||
@@ -57,6 +61,7 @@ jobs:
|
||||
node-version: "24"
|
||||
cache: "npm"
|
||||
- run: npm ci
|
||||
- run: cd scripts/claude-cron && npm ci --no-audit --no-fund --ignore-scripts
|
||||
- run: npx eslint --format gha
|
||||
|
||||
prettier:
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
name: 🤖 Claude Triage & Digest (cron)
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 6 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: read
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
run:
|
||||
name: Daily triage and digest
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: false
|
||||
persist-credentials: false
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 24
|
||||
- name: Install deps
|
||||
working-directory: scripts/claude-cron
|
||||
run: npm ci --no-audit --no-fund --ignore-scripts
|
||||
- name: Run Claude triage and digest
|
||||
working-directory: scripts/claude-cron
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
||||
DRY_RUN: ${{ vars.CLAUDE_CRON_DRY_RUN || 'true' }}
|
||||
run: npx tsx index.ts
|
||||
Reference in New Issue
Block a user