Skip to content

Commit 1440c88

Browse files
committed
See what's up with topic not user facing
1 parent 03fa80e commit 1440c88

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/scripts/check_labels.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212

1313
def delete_all_label_err_comments(pr: "GitHubPR") -> None:
1414
for comment in pr.get_comments():
15+
print(f"comment: {comment}")
1516
if is_label_err_comment(comment):
17+
print("is label err comment")
18+
print(f"comment.database_id: {comment.database_id}")
1619
gh_delete_comment(pr.org, pr.project, comment.database_id)
1720

1821

@@ -57,6 +60,7 @@ def main() -> None:
5760
delete_all_label_err_comments(pr)
5861
except Exception as e:
5962
print("general exception")
63+
print(e)
6064
if args.exit_non_zero:
6165
sys.exit(1)
6266

.github/scripts/github_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def gh_fetch_url(
7474
method: Optional[str] = None,
7575
reader: Callable[[Any], Any] = lambda x: x.read(),
7676
) -> Any:
77+
print(f"api return conent: {gh_fetch_url_and_headers(url, headers=headers, data=data, reader=json.load, method=method)}")
7778
return gh_fetch_url_and_headers(
7879
url, headers=headers, data=data, reader=json.load, method=method
7980
)[1]
@@ -168,7 +169,9 @@ def gh_post_commit_comment(
168169

169170

170171
def gh_delete_comment(org: str, repo: str, comment_id: int) -> None:
172+
print("deleting comment")
171173
url = f"{GITHUB_API_URL}/repos/{org}/{repo}/issues/comments/{comment_id}"
174+
print(f"url: {url}")
172175
gh_fetch_url(url, method="DELETE")
173176

174177

0 commit comments

Comments
 (0)