Skip to content

Commit

Permalink
Do not reply to bot PRs (#326)
Browse files Browse the repository at this point in the history
Signed-off-by: Glenn Jocher <[email protected]>
  • Loading branch information
glenn-jocher authored Dec 23, 2024
1 parent eee5bc6 commit 22cce66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion actions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
# ├── test_summarize_pr.py
# └── ...

__version__ = "0.0.30"
__version__ = "0.0.31"
2 changes: 1 addition & 1 deletion actions/summarize_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down

0 comments on commit 22cce66

Please sign in to comment.