Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork0
Reduce your notification burden on GitHub!
License
TheDragonCode/github-notifications
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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 givenorganization.
PHP 8.2+ is required. To get the latest version, simply require the project usingComposer:
composer global require dragon-code/github-notifications:*Alternatively, you can simply clone the repo and runcomposer install in the folder.
To update global dependencies, use the console command:
composer global update
You'll also need to create yourself apersonal access tokenfor GitHub's API with access to thenotifications scope.
By default, we'll try and read your personal access token for GitHub from theGITHUB_TOKEN environment variable,however you can also specify a token with the--token command-line flag.
To read all issue notifications:
notificationsreadTo clear all issue notifications for the Laravel organization:
notificationsread laravelOr, if you are specifying a token:
notificationsread laravel --token {...}In addition, you can use any part of the organization name and/or repository name to check against the template:
notificationsread laravel/framework# ornotificationsread lara*/fra# ornotificationsread framework# ornotificationsread work# ornotificationsread fra*rk
Pattern matching is implemented using theStr::is method.
You can also specify several names:
notificationsread laravel/framework laravel/jetWhen determining the name, thestr_starts_with function isused.
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 opennotificationsread 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:
notificationsread --help
You can also exclude certain repositories:
notificationsread laravel -ion -r laravel/framework -r laravel/breezeWith 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
Execute a console command with the following parameters:
notificationsread -n --except-mentionsExecute a console command with the following parameters:
notificationsread -n --except-mentions --with-open❤️ The Dragon Code? Please consider supporting our collective onBoosty.
This package is licensed under theMIT License.
About
Reduce your notification burden on GitHub!
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.


