MCPcopy Create free account
hub / github.com/METR/vivaria / check_remote_is_org

Function check_remote_is_org

cli/viv_cli/github.py:65–68  ·  view source on GitHub ↗

Check the remote is owned by the organization.

()

Source from the content-addressed store, hash-verified

63
64
65def check_remote_is_org() -> bool:
66 """Check the remote is owned by the organization."""
67 origin = execute("git remote get-url origin", error_out=True).out
68 return (f"/{get_github_org()}/" in origin) or (f":{get_github_org()}/" in origin)
69
70
71def create_repo_url(repo: str) -> str:

Callers

nothing calls this directly

Calls 2

executeFunction · 0.90
get_github_orgFunction · 0.85

Tested by

no test coverage detected