MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeWiki / get_pr_creation_url

Function get_pr_creation_url

codewiki/cli/utils/instructions.py:33–45  ·  view source on GitHub ↗

Get PR creation URL for GitHub. Args: repo_url: GitHub repository URL branch_name: Branch name Returns: PR creation URL

(repo_url: str, branch_name: str)

Source from the content-addressed store, hash-verified

31
32
33def get_pr_creation_url(repo_url: str, branch_name: str) -> str:
34 """
35 Get PR creation URL for GitHub.
36
37 Args:
38 repo_url: GitHub repository URL
39 branch_name: Branch name
40
41 Returns:
42 PR creation URL
43 """
44 base_url = repo_url.rstrip("/").replace(".git", "")
45 return f"{base_url}/compare/{branch_name}"
46
47
48def _compact(n: float) -> str:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected