fix: 修复 AI 自动审查工作流中的基准分支检出逻辑,确保使用默认分支

This commit is contained in:
QLHazyCoder
2026-04-12 12:59:06 +08:00
parent 1629f3ed3d
commit 4570c9885b
2 changed files with 78 additions and 11 deletions
+2 -2
View File
@@ -26,10 +26,10 @@ jobs:
issues: write
pull-requests: write
steps:
- name: 检出当前基准分支上的工作流文件
- name: 检出默认分支上的自动化脚本
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.ref }}
ref: ${{ github.event.repository.default_branch }}
fetch-depth: 1
persist-credentials: false