From 22cce66fb980a9db4d1edf7f117c1a93c824fc2e Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Mon, 23 Dec 2024 21:47:44 +0100 Subject: [PATCH] Do not reply to bot PRs (#326) Signed-off-by: Glenn Jocher --- actions/__init__.py | 2 +- actions/summarize_pr.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actions/__init__.py b/actions/__init__.py index d50af240..0ef06e28 100644 --- a/actions/__init__.py +++ b/actions/__init__.py @@ -22,4 +22,4 @@ # ├── test_summarize_pr.py # └── ... -__version__ = "0.0.30" +__version__ = "0.0.31" diff --git a/actions/summarize_pr.py b/actions/summarize_pr.py index e2337c56..573402c3 100644 --- a/actions/summarize_pr.py +++ b/actions/summarize_pr.py @@ -164,7 +164,7 @@ def label_fixed_issues(pr_number, pr_summary): try: data = response.json()["data"]["repository"]["pullRequest"] comments = data["reviews"]["nodes"] + data["comments"]["nodes"] # merge lists - author = data["author"]["login"] + author = data["author"]["login"] if data["author"]["__typename"] != "Bot" else None # Get unique contributors from reviews and comments contributors = {x["author"]["login"] for x in comments if x["author"]["__typename"] != "Bot"}