mirror of
https://github.com/wess09/AzurLaneAutoScript.git
synced 2026-05-14 06:58:22 +08:00
Merge branch 'wess09:dev' into dev
This commit is contained in:
commit
ecf33e9595
5
.github/scripts/ai_issue_labeler.py
vendored
5
.github/scripts/ai_issue_labeler.py
vendored
@ -952,11 +952,6 @@ def main():
|
||||
event = read_event()
|
||||
owner, repo = repo_parts(event, platform)
|
||||
|
||||
pr = resolve_pull_request(platform, event, owner, repo, token)
|
||||
if pr:
|
||||
apply_pull_request_triage(platform, owner, repo, pr, token)
|
||||
return
|
||||
|
||||
issue = resolve_issue(platform, event, owner, repo, token)
|
||||
if issue.get("pull_request"):
|
||||
print("Skipping pull request issue.")
|
||||
|
||||
21
.github/workflows/ai-issue-labeler.yml
vendored
21
.github/workflows/ai-issue-labeler.yml
vendored
@ -7,35 +7,24 @@ on:
|
||||
description: Issue number to label
|
||||
required: false
|
||||
type: number
|
||||
pr_number:
|
||||
description: Pull request number to label and link
|
||||
required: false
|
||||
type: number
|
||||
issues:
|
||||
types:
|
||||
- opened
|
||||
- edited
|
||||
pull_request_target:
|
||||
types:
|
||||
- opened
|
||||
- edited
|
||||
- synchronize
|
||||
- reopened
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
pull-requests: read
|
||||
|
||||
concurrency:
|
||||
group: ai-issue-labeler-${{ github.event.pull_request.number || github.event.issue.number || github.event.inputs.pr_number || github.event.inputs.issue_number || github.run_id }}
|
||||
group: ai-issue-labeler-${{ github.event.issue.number || github.event.inputs.issue_number || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
label:
|
||||
if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request || !github.event.issue.pull_request }}
|
||||
if: ${{ github.event_name == 'workflow_dispatch' || !github.event.issue.pull_request }}
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
timeout-minutes: 10
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
@ -47,7 +36,7 @@ jobs:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Install Python dependencies
|
||||
run: python -m pip install --upgrade openai
|
||||
run: python -m pip install "openai>=1,<2"
|
||||
|
||||
- name: Analyze issue or pull request
|
||||
env:
|
||||
@ -55,5 +44,5 @@ jobs:
|
||||
AI_BASE_URL: https://api.nanoda.work/v1
|
||||
AI_MODEL: Nvidia/qwen/qwen3-coder-480b-a35b-instruct
|
||||
AI_API_KEY: ${{ secrets.AI_API_KEY }}
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
GITHUB_TOKEN: ${{ secrets.AI_ISSUE_LABELER_TOKEN || github.token }}
|
||||
run: python .github/scripts/ai_issue_labeler.py
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user