This repository has been archived by the owner on Jul 6, 2024. It is now read-only.
都立中高一貫校入試の適性検査の学力検査化を是正する #232
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 Review | |
on: | |
issues: | |
types: [opened] | |
permissions: | |
issues: write | |
contents: read | |
jobs: | |
review_issue: | |
runs-on: ubuntu-latest | |
timeout-minutes: 1 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
cache: pip | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r .github/requirements.txt | |
- name: Review Issue with LLM | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
QD_API_KEY: ${{ secrets.QD_API_KEY }} | |
QD_URL: ${{ secrets.QD_URL }} | |
GITHUB_REPOSITORY: ${{ github.repository }} | |
GITHUB_EVENT_ISSUE_NUMBER: ${{ github.event.issue.number }} | |
run: | | |
python .github/scripts/review_issue.py |