Skip to content

Commit 2c3dc24

Browse files
authored
Support monthly update answers in closed PRs. (#249)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
1 parent 40a0257 commit 2c3dc24

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

‎handlers/monthly_update/__init__.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ def on_issue_labeled(self, api, payload):
3030
api.post_comment(MSG % (api.user, REPLY))
3131

3232
def on_new_comment(self, api, payload):
33-
if payload['issue']['state'] != 'open':
34-
return
35-
3633
user = payload['comment']['user']['login']
3734
if user == api.user: # ignore comments from self
3835
return # (since `MSG` already has `REPLY`)

‎handlers/monthly_update/tests/reply.json‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
},
1313
"action": "created",
1414
"issue": {
15-
"number": 130,
16-
"state": "open"
15+
"number": 130
1716
},
1817
"comment": {
1918
"user": {

0 commit comments

Comments
 (0)