-
Notifications
You must be signed in to change notification settings - Fork 496
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
pompurin404
committed
Oct 25, 2024
1 parent
56ba9a1
commit c2e862d
Showing
1 changed file
with
17 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,28 @@ | ||
name: Close Issues | ||
name: Review Issues | ||
|
||
on: | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
close: | ||
review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Auto Close Issue | ||
uses: mihomo-party-org/auto-close-issue@main | ||
- name: Generate Token | ||
uses: tibdex/github-app-token@v2 | ||
id: generate | ||
with: | ||
url: ${{ secrets.OPENAI_BASE_URL }} | ||
key: ${{ secrets.OPENAI_API_KEY }} | ||
prompt: ${{ vars.OPENAI_SYSTEM_PROMPT }} | ||
app_id: ${{ secrets.BOT_APP_ID }} | ||
private_key: ${{ secrets.BOT_PRIVATE_KEY }} | ||
- name: Review Issues | ||
uses: mihomo-party-org/[email protected] | ||
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 }} | ||
user_input: | | ||
请审查如下 Issue: | ||
标题:"${{ github.event.issue.title }}" | ||
内容:"${{ github.event.issue.body }}" |