Skip to content

[Correction] Call: Bene | Bruno Woltzenlogel Paleo & Jossemii | ErgoHack 9 #24

[Correction] Call: Bene | Bruno Woltzenlogel Paleo & Jossemii | ErgoHack 9

[Correction] Call: Bene | Bruno Woltzenlogel Paleo & Jossemii | ErgoHack 9 #24

name: Process Correction Issue
on:
issues:
types: [labeled]
jobs:
process-correction:
if: >-
github.event.label.name == 'correction' ||
github.event.label.name == 'approved'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install @anthropic-ai/sdk
- name: Process correction
run: node .github/scripts/process-correction.mjs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
ISSUE_BODY: ${{ github.event.issue.body }}
ISSUE_TITLE: ${{ github.event.issue.title }}
TRIGGER_LABEL: ${{ github.event.label.name }}