Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/Services/GitHub.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ protected function shouldSkip(NotificationData $notification, ItemData $item): b
return true;
}

if ($this->exceptMentions && $notification->reason === 'mention' && $this->isNotDependabot($item)) {
if ($this->exceptMentions && $notification->reason === 'mention' && $this->isNotServiceAccount($item)) {
return true;
}

Expand Down Expand Up @@ -223,8 +223,8 @@ protected function detected(int $count): void
Output::info("unread $pluralized detected", $count);
}

protected function isNotDependabot(ItemData $item): bool
protected function isNotServiceAccount(ItemData $item): bool
{
return $item->ownerId !== config('bots.dependabot');
return ! in_array($item->ownerId, config('bots.accounts'), true);
}
}
6 changes: 5 additions & 1 deletion config/bots.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?php

return [
'dependabot' => 49699333,
'accounts' => [
9919, // GitHub
49699333, // dependabot
41898282, // GitHub Actions
],
];