mihomo-party/.github/workflows/issues.yml

30 lines
912 B
YAML
Raw Normal View History

2024-10-25 21:34:49 +08:00
name: Review Issues
2024-10-23 12:20:33 +08:00
on:
issues:
types: [opened]
jobs:
2024-10-25 21:34:49 +08:00
review:
2024-10-23 12:20:33 +08:00
runs-on: ubuntu-latest
steps:
2024-10-25 21:34:49 +08:00
- name: Generate Token
uses: tibdex/github-app-token@v2
id: generate
2024-10-23 19:27:38 +08:00
with:
2024-10-24 09:12:27 +08:00
app_id: ${{ secrets.BOT_APP_ID }}
private_key: ${{ secrets.BOT_PRIVATE_KEY }}
2024-10-25 21:34:49 +08:00
- name: Review Issues
uses: mihomo-party-org/universal-assistant@v1.0.3
with:
github_token: ${{ steps.generate.outputs.token }}
openai_base_url: ${{ secrets.OPENAI_BASE_URL }}
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
openai_model: ${{ vars.OPENAI_MODEL }}
system_prompt: ${{ vars.SYSTEM_PROMPT }}
available_tools: ${{ vars.AVAILABLE_TOOLS }}
user_input: |
请审查如下 Issue
标题:"${{ github.event.issue.title }}"
内容:"${{ github.event.issue.body }}"