localesファイルを項目でまとめるようにリファクタリング #38
This file contains 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: Issue Analyzer | |
on: | |
issues: | |
types: [opened] | |
workflow_dispatch: | |
inputs: | |
issue_number: | |
description: 'Issue Number' | |
required: true | |
issue_title: | |
description: 'Issue Title' | |
required: true | |
issue_body: | |
description: 'Issue Body' | |
required: true | |
jobs: | |
analyze-issue: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install requests anthropic | |
- name: Analyze issue | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
ISSUE_NUMBER: ${{ github.event.inputs.issue_number || github.event.issue.number }} | |
ISSUE_TITLE: ${{ github.event.inputs.issue_title || github.event.issue.title }} | |
ISSUE_BODY: ${{ github.event.inputs.issue_body || github.event.issue.body }} | |
run: python scripts/analyze_issue.py |