From 77eb37575c9e6406f90d1719a81ccf9bf53d4b6a Mon Sep 17 00:00:00 2001 From: Lukasz Sielski Date: Thu, 19 Sep 2024 10:38:19 +0200 Subject: [PATCH] test --- scripts/gh_cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/gh_cli.py b/scripts/gh_cli.py index e125f09..7a4afe7 100644 --- a/scripts/gh_cli.py +++ b/scripts/gh_cli.py @@ -12,11 +12,13 @@ def extract_pr_body(self, commit_sha: str) -> str: except subprocess.CalledProcessError as e: raise Exception(f'Failed to retrieve PR body! {e.stderr}') prDetailsJson = json.loads(prDetails) + print(prDetailsJson) return prDetailsJson[0]['body'] if len(prDetailsJson) == 0 else '' T = TypeVar('T') def extract_data_from_pr_body(self, commit_sha: str, pattern: re.Pattern, mapping: Callable[[str], T]) -> list[T]: finds = re.findall(pattern, self.extract_pr_body(commit_sha)) + print(finds) a = list(map(mapping, finds)) print(a) return a