@@ -17,6 +17,7 @@ class ReadCommand extends Command
1717 . ' {repository?* : Full or partial repository names} '
1818 . ' {--i|except-issues : Exclude issues from processing} '
1919 . ' {--p|except-pulls : Exclude Pull Requests from processing} '
20+ . ' {--m|except-mentions : Exclude notifications with your mention from processing} '
2021 . ' {--o|with-open : Process including open Issues and Pull Requests} '
2122 . ' {--token= : Specifies the token to use} ' ;
2223
@@ -57,6 +58,7 @@ protected function read(array $repositories): void
5758 ->repositories ($ repositories )
5859 ->exceptIssues ($ this ->exceptIssues ())
5960 ->exceptPulls ($ this ->exceptPulls ())
61+ ->exceptMentions ($ this ->exceptMentions ())
6062 ->withOpen ($ this ->withOpen ())
6163 ->when (
6264 $ this ->shouldBeAll ($ repositories ),
@@ -70,6 +72,7 @@ protected function shouldBeAll(array $repositories): bool
7072 return empty ($ repositories )
7173 && ! $ this ->exceptIssues ()
7274 && ! $ this ->exceptPulls ()
75+ && ! $ this ->exceptMentions ()
7376 && $ this ->withOpen ();
7477 }
7578
@@ -103,6 +106,11 @@ protected function exceptPulls(): bool
103106 return $ this ->option ('except-pulls ' );
104107 }
105108
109+ protected function exceptMentions (): bool
110+ {
111+ return $ this ->option ('except-mentions ' );
112+ }
113+
106114 protected function withOpen (): bool
107115 {
108116 return $ this ->option ('with-open ' );
0 commit comments