{"id":13809863,"url":"https://github.com/Eomm/notification-remover","last_synced_at":"2025-05-14T10:31:12.504Z","repository":{"id":37081331,"uuid":"432665094","full_name":"Eomm/notification-remover","owner":"Eomm","description":"Clean your inbox notification, on the go, when you need!","archived":false,"fork":false,"pushed_at":"2023-01-26T16:04:59.000Z","size":470,"stargazers_count":8,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-07T21:02:00.656Z","etag":null,"topics":["actions","github","github-actions","notifications"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Eomm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null}},"created_at":"2021-11-28T09:05:56.000Z","updated_at":"2023-09-08T18:29:03.000Z","dependencies_parsed_at":"2023-02-14T19:16:37.549Z","dependency_job_id":null,"html_url":"https://github.com/Eomm/notification-remover","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":0.4,"last_synced_commit":"d9846f4fe009ed0e9122ec08f627a0b3031a5b65"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eomm%2Fnotification-remover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eomm%2Fnotification-remover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eomm%2Fnotification-remover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eomm%2Fnotification-remover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Eomm","download_url":"https://codeload.github.com/Eomm/notification-remover/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254120624,"owners_count":22018024,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","github","github-actions","notifications"],"created_at":"2024-08-04T02:00:37.910Z","updated_at":"2025-05-14T10:31:12.137Z","avatar_url":"https://github.com/Eomm.png","language":"JavaScript","readme":"# notification-remover\n\nClean your inbox notification, on the go, when you need!\n\nThis GitHub Action let you to remove all the BOT notification on your inbox!\nSupported bots:\n\n- [x] [Dependabot](https://github.blog/2020-06-01-keep-all-your-packages-up-to-date-with-dependabot/)\n- [ ] [Renovate](https://github.com/renovatebot/renovate)\n\n## Installation\n\nTo allow GitHub Actions to mark as read **your** notifications, you need to create a [Personal Access Token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token).\nThe **only** permission needed is `notifications`.\n\nAfter you have created the token, you can use it to use this GitHub Action.\n\n1. Create a new repository. (_I suggest to use your GitHub profile repository_)[https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/managing-your-profile-readme]\n1. Add your personal access token to the repository's secrets as `USER_TOKEN`.\n1. Create a new GitHub Workflow as in the `Usage` section.\n\n## Usage\n\nThis minimal example adds a new workflow to your repository that you can use to remove all the BOT notification on your inbox.\nThis simple workflow can be triggered by a `curl` command or a chron job: it is a matter of your choice!\n\nCreate a `notification-remover.yml` file in your repository.\n\n```yml\nname: notification-remover\n\non:\n  workflow_dispatch:\n\njobs:\n  notification-remover:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: Eomm/notification-remover@v1\n        with:\n          github-user-token: ${{ secrets.USER_TOKEN }}\n```\n\nThan you will be able to trigger the workflow by a `curl` command:\n\n```sh\n# https://docs.github.com/rest/reference/actions#create-a-workflow-dispatch-event\ncurl -X POST \\\n  -H \"Accept: application/vnd.github.v3+json\" \\\n  -H \"Authorization: token {workflow_user_token}\" \\\n  https://api.github.com/repos/{owner}/{reponame}/actions/workflows/notification-remover.yml/dispatches \\\n  -d '{\"ref\":\"main\"}'\n```\n\n\u003e Note that the `workflow_user_token` is a new GitHub Personal Access Token with the `workflow` permission.\n\nA more complete workflow can be as follow:\n\n```yml\nname: notification-remover\n\non:\n  workflow_dispatch:\n    inputs:\n      days-ago:\n        default: 5\n      pr-state:\n        default: 'all'\n\njobs:\n  notification-remover:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: Eomm/notification-remover@v1\n        with:\n          github-user-token: ${{ secrets.USER_TOKEN }}\n          pr-state: ${{ github.event.inputs.pr-state }}\n          days-ago: ${{ github.event.inputs.days-ago }}\n```\n\nGive it a try!\n\n### Arguments\n\n| Name | Default | Description |\n| ---- | ------- | ----------- |\n| `github-user-token` | - | (required) Personal access token to use to access GitHub. |\n| `days-ago` | `5` | Number of days to look back for notifications. |\n| `pr-state` | `closed` | Mark as read the notification only if the PR is in the selected stage. Possible values: `closed`, `open`, `all` |\n\n## Development this Action\n\nRead the [developer documentation](https://github.com/actions/javascript-action#package-for-distribution).\n\n## License\n\nCopyright [Manuel Spigolon](https://github.com/Eomm), Licensed under [MIT](./LICENSE).\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEomm%2Fnotification-remover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FEomm%2Fnotification-remover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEomm%2Fnotification-remover/lists"}