mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-18 01:26:37 +08:00
fix: fix sync upstreem
This commit is contained in:
parent
a8dee4aad2
commit
befd5d623f
13
.github/workflows/sync-upstreem-pr.yml
vendored
13
.github/workflows/sync-upstreem-pr.yml
vendored
@ -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
|
Loading…
Reference in New Issue
Block a user