Skip to content

Commit

Permalink
ci: fix diff run for master
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Jan 19, 2022
1 parent b8e67f9 commit cccb7a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,14 @@ def set_oldest_versions(req_files: List[str] = REQUIREMENTS_FILES) -> None:

@staticmethod
def changed_domains(
pr: int,
pr: Optional[int] = None,
auth_token: Optional[str] = None,
as_list: bool = False,
general_sub_pkgs: Tuple[str] = _PKG_WIDE_SUBPACKAGES,
) -> Union[str, List[str]]:
"""Determine what domains were changed in particular PR."""
if not pr:
return "tests"
url = f"https://api.github.com/repos/PyTorchLightning/metrics/pulls/{pr}/files"
logging.debug(url)
data = request_url(url, auth_token)
Expand Down

0 comments on commit cccb7a6

Please sign in to comment.