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)
| 31 | |
| 32 | |
| 33 | def 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 | |
| 48 | def _compact(n: float) -> str: |
no outgoing calls
no test coverage detected