Bladeren bron

Merge pull request #1661 from ehuss/fix-assign-from-bot

Fix auto-assign not ignoring bot comments.
Mark Rousskov 2 jaren geleden
bovenliggende
commit
ca14859243
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      src/handlers/assign.rs

+ 1 - 1
src/handlers/assign.rs

@@ -408,7 +408,7 @@ pub(super) async fn handle_command(
     // Don't handle commands in comments from the bot. Some of the comments it
     // posts contain commands to instruct the user, not things that the bot
     // should respond to.
-    if event.comment_from() == Some(ctx.username.as_str()) {
+    if event.user().login == ctx.username.as_str() {
         return Ok(());
     }