Skip to content

Commit 5783cb2

Browse files
committed
Fix auto-assign not ignoring bot comments.
1 parent a3d0606 commit 5783cb2

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)