New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@seveibar/prune-github-notifications

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@seveibar/prune-github-notifications

Prunes GitHub notifications you don't care about, such as automated dependency bumps. 🧹

  • 0.6.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.7K
decreased by-1.44%
Maintainers
0
Weekly downloads
 
Created
Source

prune-github-notifications

Prunes GitHub notifications you don't care about, such as automated dependency bumps. 🧹

👪 All Contributors: 1 🤝 Code of Conduct: Kept 🧪 Coverage 📝 License: MIT 📦 npm version 💪 TypeScript: Strict

CLI

prune-github-notifications can be run on the CLI with an auth token for notifications access:

npx prune-github-notifications

CLI Options

OptionTypeDefaultDescription
--authstringprocess.env.GH_TOKEN or executing gh auth tokenAuth token for GitHub from octokit-from-auth.
--bandwidthnumber6Maximum parallel requests to start at once.
--reasonstring[]["subscribed"]Notification reason(s) to filter to.
--titlestring[]["^chore\(deps\): update .+ to", /^build\(deps-dev\): bump .+ to"]Notification title regular expressions to filter to.
--watchnumber0A seconds interval to continuously re-run this on, if truthy.
--authorstring[]-Usernames to ignore notifications from when reason is "author".
--botAuthorbooleanfalseIgnore notifications from any authors with "[bot]" in their name
--verbosebooleanfalsePrint information while processing notifications

For example, providing all functional options on the CLI:

npx prune-github-notifications --bandwidth 10 --reason subscribed --title "^chore.+ update .+ to"

Running in watch mode to clear notifications every ten seconds:

npx prune-github-notifications --watch 10

Node.js API

npm i prune-github-notifications
import { pruneGitHubNotifications } from "prune-github-notifications";

await pruneGitHubNotifications({ auth: "gho_..." });

If a process.env.GH_TOKEN is set, then the auth parameter will default to it:

await pruneGitHubNotifications();

Node.js Options

Only auth is required, and only if a GH_TOKEN isn't available.

OptionTypeDefaultDescription
authstringprocess.env.GH_TOKENGitHub authentication token with notifications access.
bandwidthnumber6Maximum parallel requests to start at once.
reasonSet<string>Set {"subscribed"}Notification reason(s) to filter to.
titleRegExp[][/^chore\(deps\): update .+ to/, /^build\(deps-dev\): bump .+ to/]Notification title regular expressions to filter to.

For example, providing all options to the Node.js API:

await pruneGitHubNotifications({
	auth: "gho_...",
	bandwidth: 10,
	reason: subscribed,
	title: ["^chore.+ update .+ to"],
});

Development

See .github/CONTRIBUTING.md, then .github/DEVELOPMENT.md. Thanks! 💖

Contributors

Josh Goldberg
Josh Goldberg

🔧 🚧 🤔 💻 🐛

💙 This package was templated with create-typescript-app.

FAQs

Package last updated on 13 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc