(role_name: str, description: str = "", feishu_chat_id: str = "")
| 1768 | push_output = (result.stdout or result.stderr or "").strip() |
| 1769 | pushed = True |
| 1770 | except subprocess.CalledProcessError as retry_exc: |
| 1771 | push_output = (retry_exc.stderr or retry_exc.stdout or str(retry_exc)).strip() |
| 1772 | raise RuntimeError( |
| 1773 | f"GitHub push failed: {push_output}" if language == "en" else f"GitHub push 失败:{push_output}" |
| 1774 | ) from retry_exc |
| 1775 | else: |
| 1776 | push_output = "" |
| 1777 | |
| 1778 | final_status = _git_output(["status", "--short", "--ignored"], repo_dir) |
| 1779 | return { |
| 1780 | "ok": True, |
| 1781 | "repo_dir": str(repo_dir), |
| 1782 | "remote": remote_url, |
| 1783 | "branch": branch, |
nothing calls this directly
no test coverage detected