fix: fix sync upstreem

This commit is contained in:
sagitchu 2025-03-18 16:03:26 +08:00
parent a8dee4aad2
commit befd5d623f

View File

@ -63,21 +63,12 @@ jobs:
# 推送到本地仓库 # 推送到本地仓库
git push origin $pr_branch -f git push origin $pr_branch -f
# 创建PR # 使用单行描述创建PR
pr_body_with_ref="此PR是从上游仓库自动同步的 #$pr_number: $pr_title
Original PR: https://github.com/$UPSTREAM_REPO/pull/$pr_number
---
$pr_body"
gh pr create \ gh pr create \
--title "[Upstream PR #$pr_number] $pr_title" \ --title "[Upstream PR #$pr_number] $pr_title" \
--body "$pr_body_with_ref" \ --body "Auto-synced from https://github.com/$UPSTREAM_REPO/pull/$pr_number" \
--base $pr_base \ --base $pr_base \
--head $pr_branch --head $pr_branch
git checkout main git checkout main
fi done
done