MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / create_role

Function create_role

deployments/desktop/shared/agents.py:1770–1780  ·  view source on GitHub ↗
(role_name: str, description: str = "", feishu_chat_id: str = "")

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 1

list_rolesFunction · 0.70

Tested by

no test coverage detected