From 9399f6e88608802284376a0dfa176cbea0a5dd5c Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Fri, 19 Jun 2026 10:57:28 -0400 Subject: [PATCH] Support monthly update answers in closed PRs. Signed-off-by: Josh Matthews --- handlers/monthly_update/__init__.py | 3 --- handlers/monthly_update/tests/reply.json | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/handlers/monthly_update/__init__.py b/handlers/monthly_update/__init__.py index 8b0d2ca..5d94aab 100644 --- a/handlers/monthly_update/__init__.py +++ b/handlers/monthly_update/__init__.py @@ -30,9 +30,6 @@ def on_issue_labeled(self, api, payload): api.post_comment(MSG % (api.user, REPLY)) def on_new_comment(self, api, payload): - if payload['issue']['state'] != 'open': - return - user = payload['comment']['user']['login'] if user == api.user: # ignore comments from self return # (since `MSG` already has `REPLY`) diff --git a/handlers/monthly_update/tests/reply.json b/handlers/monthly_update/tests/reply.json index 325ded4..f19f917 100644 --- a/handlers/monthly_update/tests/reply.json +++ b/handlers/monthly_update/tests/reply.json @@ -12,8 +12,7 @@ }, "action": "created", "issue": { - "number": 130, - "state": "open" + "number": 130 }, "comment": { "user": {