MCPcopy Create free account
hub / github.com/RASAAS/docmcp-knowledge / push_branch

Function push_branch

scripts/generate_content_pr.py:399–405  ·  view source on GitHub ↗

Push branch to origin.

(branch_name: str)

Source from the content-addressed store, hash-verified

397
398
399def push_branch(branch_name: str) -> bool:
400 """Push branch to origin."""
401 code, _, err = run_git(["push", "origin", branch_name])
402 if code != 0:
403 print(f"ERROR: Failed to push branch: {err}")
404 return False
405 return True
406
407
408# ---------------------------------------------------------------------------

Callers 1

process_updatesFunction · 0.85

Calls 1

run_gitFunction · 0.85

Tested by

no test coverage detected