惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
P
Proofpoint News Feed
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
IT之家
IT之家
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
C
Check Point Blog
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
美团技术团队
D
Docker
博客园 - Franky
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 【当耐特】
罗磊的独立博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(pr): prefer verified GitHub commits for prep pushes (...
BunsDev · 2026-05-03 · via Recent Commits to openclaw:main

@@ -202,6 +202,27 @@ resolve_prhead_remote_sha() {

202202

printf '%s\n' "$remote_sha"

203203

}

204204205+

push_prep_head_once() {

206+

local pr_head="$1"

207+

local lease_sha="$2"

208+

local prep_head_sha="$3"

209+210+

if [ -n "${PR_HEAD_OWNER:-}" ] && [ -n "${PR_HEAD_REPO_NAME:-}" ] && [ "${OPENCLAW_PR_PUSH_MODE:-graphql}" != "git" ]; then

211+

echo "Pushing PR branch through GitHub createCommitOnBranch so the prepared commit is verified." >&2

212+

graphql_push_to_fork "${PR_HEAD_OWNER}/${PR_HEAD_REPO_NAME}" "$pr_head" "$lease_sha"

213+

return $?

214+

fi

215+216+

if [ "${OPENCLAW_ALLOW_UNSIGNED_GIT_PUSH:-}" != "1" ]; then

217+

echo "Refusing git-protocol PR branch push because it can publish unsigned commits." >&2

218+

echo "Use the default GitHub createCommitOnBranch path, or set OPENCLAW_ALLOW_UNSIGNED_GIT_PUSH=1 for an explicit manual override." >&2

219+

return 2

220+

fi

221+222+

git push --force-with-lease=refs/heads/$pr_head:$lease_sha prhead HEAD:$pr_head >&2

223+

printf '%s\n' "$prep_head_sha"

224+

}

225+205226

push_prep_head_to_pr_branch() {

206227

local pr="$1"

207228

local pr_head="$2"

@@ -226,9 +247,7 @@ push_prep_head_to_pr_branch() {

226247

fi

227248

pushed_from_sha="$lease_sha"

228249

local push_output

229-

if ! push_output=$(

230-

git push --force-with-lease=refs/heads/$pr_head:$lease_sha prhead HEAD:$pr_head 2>&1

231-

); then

250+

if ! push_output=$(push_prep_head_once "$pr_head" "$lease_sha" "$prep_head_sha" 2>&1); then

232251

echo "Push failed: $push_output"

233252234253

if printf '%s' "$push_output" | grep -qiE '(permission|denied|403|forbidden)'; then

@@ -253,9 +272,7 @@ push_prep_head_to_pr_branch() {

253272

run_prepare_push_retry_gates "$docs_only"

254273

fi

255274256-

if ! push_output=$(

257-

git push --force-with-lease=refs/heads/$pr_head:$lease_sha prhead HEAD:$pr_head 2>&1

258-

); then

275+

if ! push_output=$(push_prep_head_once "$pr_head" "$lease_sha" "$prep_head_sha" 2>&1); then

259276

echo "Retry push failed: $push_output"

260277

if [ -n "${PR_HEAD_OWNER:-}" ] && [ -n "${PR_HEAD_REPO_NAME:-}" ]; then

261278

echo "Retry failed; trying GraphQL createCommitOnBranch fallback..."

@@ -266,8 +283,12 @@ push_prep_head_to_pr_branch() {

266283

echo "Git push failed and no fork owner/repo info for GraphQL fallback."

267284

exit 1

268285

fi

286+

else

287+

prep_head_sha=$(printf '%s\n' "$push_output" | tail -n 1)

269288

fi

270289

fi

290+

else

291+

prep_head_sha=$(printf '%s\n' "$push_output" | tail -n 1)

271292

fi

272293

fi

273294