From befd5d623f683679f960df657c5a02d790e71372 Mon Sep 17 00:00:00 2001 From: sagitchu <601096721@qq.com> Date: Tue, 18 Mar 2025 16:03:26 +0800 Subject: [PATCH] fix: fix sync upstreem --- .github/workflows/sync-upstreem-pr.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/sync-upstreem-pr.yml b/.github/workflows/sync-upstreem-pr.yml index d6eb1dae..4a5a7e41 100644 --- a/.github/workflows/sync-upstreem-pr.yml +++ b/.github/workflows/sync-upstreem-pr.yml @@ -62,22 +62,13 @@ jobs: # 推送到本地仓库 git push origin $pr_branch -f - - # 创建PR - pr_body_with_ref="此PR是从上游仓库自动同步的 #$pr_number: $pr_title -Original PR: https://github.com/$UPSTREAM_REPO/pull/$pr_number - ---- - -$pr_body" - + # 使用单行描述创建PR gh pr create \ --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 \ --head $pr_branch - + git checkout main - fi - done \ No newline at end of file + done \ No newline at end of file