Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

github-remove-all-releases

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-remove-all-releases

Remove all releases of a GitHub repo

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
16
-20%
Maintainers
1
Weekly downloads
 
Created
Source

NPM version Build Status Dependency Status Coverage Status

Remove all releases of a GitHub repo

Install

$ npm install --save github-remove-all-releases

Usage

var githubRemoveAllReleases = require('github-remove-all-releases');

var AUTH = {
  type: "oauth",
  token: '0126af95c0e2d9b0a7c78738c4c00a860b04acc8'
};

githubRemoveAllReleases(AUTH, 'stevemaotest', 'github-remove-all-releases-test', callback);
$ npm install --global github-remove-all-releases
$ github-remove-all-releases --help

  Remove all releases of a GitHub repo

  Usage
    github-remove-all-releases <owner> <repo>

  Example
    github-remove-all-releases stevemao github-repo
    github-remove-all-releases stevemao github-repo -t cde5078435862fe1c8af8af4b582460b95e8ec30

  Options
    -t, --token         Your auth token
    -v, --verbose       Verbose output

API

githubRemoveAllReleases(auth, owner, repo, callback, [filter])

auth

An auth object passed to node-github.

owner

Type: string

The owner of the repo.

repo

Type: string

The repo you want your releases deleted from.

callback

function(err, data)

data

Type: array

A list of deleted releases.

filter

Type: function Default: always return true

function(release)

A custom filter function. All the releases will be passed as the only argument of this function. If return true, this release will be removed.

CLI

You can supply your auth token by a flag -t or --token. You can also set up an environment variable CONVENTIONAL_GITHUB_RELEASER_TOKEN to avoid typing your token every time. Create a new token if you haven't.

License

MIT © Steve Mao

Keywords

github-remove-all-releases

FAQs

Package last updated on 15 Jul 2015

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