dragon-code / github-notifications
Reduce your notification burden on GitHub!
Installs: 829
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
pkg:composer/dragon-code/github-notifications
Requires
- php: ^8.2
Requires (Dev)
- guzzlehttp/guzzle: ^7.10.0
- knplabs/github-api: ^3.16.0
- laravel-zero/framework: ^12.0.1
- mockery/mockery: ^1.6.12
- nunomaduro/termwind: ^2.3.1
- pestphp/pest: ^3.8.4
- dev-main
- 1.x-dev
- 1.12.0
- 1.11.1
- 1.11.0
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.1
- 1.4.0
- 1.3.1
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.2
- 1.0.1
- 1.0.0
- dev-build/app-pe5wnfn
- dev-build/app-8ooshiq
- dev-dependabot/github_actions/actions/download-artifact-6
- dev-dependabot/github_actions/actions/upload-artifact-5
- dev-build/app-zn0e1x8
- dev-build/app-yr7aje8
- dev-build/app-dwksclm
This package is auto-updated.
Last update: 2025-10-27 06:27:26 UTC
README
GitHub Notifications was created by, and is maintained by
The Dragon Code, and is a simple command line tool to mark all notifications about issues or rejected PRs as read on a given organization.
Installation
PHP 8.2+ is required. To get the latest version, simply require the project using Composer:
composer global require dragon-code/github-notifications:*
Alternatively, you can simply clone the repo and run composer install in the folder.
Update global dependencies
To update global dependencies, use the console command:
composer global update
Authentication
You'll also need to create yourself a
personal access token
for GitHub's API with access to the notifications scope.
By default, we check several places for the presence of a token in the following order:
- The
tokenparameter passed when calling the console command - The
GITHUB_TOKENenvironment variable ~/.composer/auth.jsonfile~/.config/.composer/auth.jsonfile~/.config/composer/auth.jsonfile~/AppData/Roaming/Composer/auth.jsonfile~/composer/auth.jsonfile%USERPROFILE%/AppData/Roaming/Composer/auth.jsonfile
If the token is not found, you will receive a message about this.
Usage
To read all issue notifications:
notifications read
To clear all issue notifications for the Laravel organization:
notifications read laravel
Or, if you are specifying a token:
notifications read laravel --token {...}
In addition, you can use any part of the organization name and/or repository name to check against the template:
notifications read laravel/framework # or notifications read lara*/fra # or notifications read framework # or notifications read work # or notifications read fra*rk
Pattern matching is implemented using the Str::is method.
You can also specify several names:
notifications read laravel/framework laravel/jet
When determining the name, the str_starts_with function is
used.
Options
By default, only those Issues and Pull Requests that have been closed or merged are marked as read.
But you can define the parameters yourself:
-r, --except-repository Exclude repositories from processing -i, --except-issues Exclude issues from processing -p, --except-pulls Exclude Pull Requests from processing -m, --except-mentions Exclude notifications with your mention from processing -o, --with-open Process including open Issues and Pull Requests -n, --no-interaction Do not ask any interactive question -q, --quiet Do not output any message
For example:
# except issues + with open notifications read laravel -ion
With this set of options, notifications that have:
- whose repository name begins with the word
laravel - Pull Requests only, both open and closed
- will not be asked to continue in the console
You can call the console command to display help information:
notifications read --help
You can also exclude certain repositories:
notifications read laravel -ion -r laravel/framework -r laravel/breeze
With this set of options, notifications that have:
- whose repository name begins with the word
laravel - Pull Requests only, both open and closed
- will not be asked to continue in the console
- repositories
laravel/frameworkandlaravel/breezewill not be processed
Result
Before
Execute a console command with the following parameters:
notifications read -n --except-mentions
After
After with --with-open option
Execute a console command with the following parameters:
notifications read -n --except-mentions --with-open
Support Us
❤️ The Dragon Code? Please consider supporting our collective on Boosty.
License
This package is licensed under the MIT License.


