use universal assistant

This commit is contained in:
pompurin404 2024-10-25 21:34:49 +08:00
parent 56ba9a1bc9
commit 5c2715b989
No known key found for this signature in database

View File

@ -1,18 +1,29 @@
name: Close Issues name: Review Issues
on: on:
issues: issues:
types: [opened] types: [opened]
jobs: jobs:
close: review:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Auto Close Issue - name: Generate Token
uses: mihomo-party-org/auto-close-issue@main uses: tibdex/github-app-token@v2
id: generate
with: with:
url: ${{ secrets.OPENAI_BASE_URL }}
key: ${{ secrets.OPENAI_API_KEY }}
prompt: ${{ vars.OPENAI_SYSTEM_PROMPT }}
app_id: ${{ secrets.BOT_APP_ID }} app_id: ${{ secrets.BOT_APP_ID }}
private_key: ${{ secrets.BOT_PRIVATE_KEY }} private_key: ${{ secrets.BOT_PRIVATE_KEY }}
- 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 }}"