Add watchlist command
This commit is contained in:
@@ -33,6 +33,14 @@ def commits_since(first_ref: str, last_ref: str) -> int:
|
||||
return commit_response.json()["behind_by"]
|
||||
|
||||
|
||||
def get_pr(pr: int) -> dict:
|
||||
url = f"https://api.github.com/repos/NixOS/nixpkgs/pulls/{pr}"
|
||||
pr_response = requests.get(url, headers=DEFAULT_HEADERS)
|
||||
pr_response.raise_for_status()
|
||||
|
||||
return pr_response.json()
|
||||
|
||||
|
||||
def pr_merge_status(
|
||||
pr: int, branches: list[str] = DEFAULT_BRANCHES, check_backport: bool = True
|
||||
) -> PRStatus:
|
||||
|
||||
Reference in New Issue
Block a user