Skip to content

Commit 120bff3

Browse files
committed
Don't handle nested review comments
1 parent 27585d5 commit 120bff3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

bot/github.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ def pull_request_review_comment(self, update, context):
200200
if update.payload['action'] == 'created':
201201
pull_request = update.payload['pull_request']
202202
comment = update.payload['comment']
203+
if comment.get('in_reply_to_id'):
204+
# Don't handle comments that are replies to other comments
205+
return
206+
203207
author = comment['user']
204208
repo = update.payload['repository']
205209

0 commit comments

Comments
 (0)