14 lines
348 B
Python
14 lines
348 B
Python
|
import subprocess
|
||
|
|
||
|
|
||
|
def _open_browser(url: str):
|
||
|
subprocess.run(["xdg-open", url])
|
||
|
|
||
|
|
||
|
def create_pull_request_via_web(*, head: str, host: str, repo: str, owner: str):
|
||
|
_open_browser(f"{host}/{owner}/{repo}/compare/main...{head}")
|
||
|
|
||
|
|
||
|
def view_repository_via_web(*, host: str, repo: str, owner: str):
|
||
|
_open_browser(f"{host}/{owner}/{repo}")
|