Skip to content

Commit ca14859

Browse files
Merge pull request #1661 from ehuss/fix-assign-from-bot
Fix auto-assign not ignoring bot comments.
2 parents a3d0606 + 5783cb2 commit ca14859

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handlers/assign.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ pub(super) async fn handle_command(
408408
// Don't handle commands in comments from the bot. Some of the comments it
409409
// posts contain commands to instruct the user, not things that the bot
410410
// should respond to.
411-
if event.comment_from() == Some(ctx.username.as_str()) {
411+
if event.user().login == ctx.username.as_str() {
412412
return Ok(());
413413
}
414414

0 commit comments

Comments
 (0)