feat(gitpush): support force-with-lease push #10
No reviewers
Labels
No labels
enhancement
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
genji1024/containerized-agents!10
Loading…
Reference in a new issue
No description provided.
Delete branch "8-feat/gitpush-force-with-lease"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #8
概要
gitpush-mcp の
pushにforceフラグを追加し、--force-with-leaseに対応する。private-note#10 の15コミット squash(b83aa26)を force-push するために必要(c463 指示による実装)。変更内容
dockerfiles/gitpush-mcp/server.py—push(..., force=False)追加、真のときのみ--force-with-lease方針(#8 本文どおり):
force=falseは従来どおり plain pushforce=trueのみ--force-with-lease --set-upstream--forceではなく--force-with-leaseで、リモート想定外進行時の誤上書きを防ぐgitpush_*allow)。force 実行可否はオーナー判断、bot は独断で force しない動作確認
python3 -m py_compile dockerfiles/gitpush-mcp/server.py— 成功force=trueの実 force-push は、本 PR マージ後の新 gitpush-mcp イメージでのみ検証可能(現稼働イメージは旧コード)。マージ後に private-note#10 のb83aa26で検証する手動確認手順
docker compose -f compose.yaml build gitpush-mcpdocker compose up -d gitpush-mcpで再起動b83aa26)からpush(..., force=true)で force-with-lease が通ることを確認migrate/postgres-minioが単一コミットに整理されたことを確認備考
LGTM!