Skip to content

Commit

Permalink
bugfix: fixed resolving notification that didn't produce any commands…
Browse files Browse the repository at this point in the history
… in issue. (#183)

@race-of-sloths
  • Loading branch information
akorchyn authored Sep 26, 2024
1 parent 6a84a0d commit 861dd25
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bot/src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,13 @@ impl GithubClient {
}
}

if results.is_empty() {
info!("No commands found in issue: {}", repo_info.number);
if let Err(e) = self.mark_notification_as_read(event.id).await {
error!("Failed to mark notification as read: {:?}", e);
}
}

Some(results)
}

Expand Down

0 comments on commit 861dd25

Please sign in to comment.