GitXplorerGitXplorer
s

github-remove-all-releases

public
27 stars
7 forks
1 issues

Commits

List of commits on branch master.
Unverified
d862e3ae7aeb4168c2d9c1e6133da684d9c03f7d

new token for testing

sstevemao committed 9 years ago
Unverified
ac52ed48c9bf078a17c26a43101322c11aada90f

remove unnecessary duplicate in README

sstevemao committed 9 years ago
Unverified
76636ffd5e3c7a5bdf6b947a4580964cd4ca52d8

add note about GitHub token

sstevemao committed 9 years ago
Unverified
ea14d7a36da986e1ccf732251937f00ded488f4c

1.0.1

sstevemao committed 9 years ago
Unverified
d8e1dd9748aa93abf387971827b6d34917fdd1e7

add why and grunt in readme

sstevemao committed 9 years ago
Unverified
5086eaeccf7513b1c6e6fa474b716470c4c08f17

tweak cli help output

sstevemao committed 10 years ago

README

The README file for this repository.

NPM version Build Status Dependency Status Coverage Status

Remove all releases of a GitHub repo

Useful when you need to scrap current releases and make new ones.

Install

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

Usage

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

var AUTH = {
  type: 'oauth',
  token: '0126af95c0e2d9b0a7c78738c4c00a860b04acc8'// change this to your own GitHub token or use an environment variable
};

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

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.

Grunt

See grunt-github-remove-all-releases.

Related

License

MIT © Steve Mao