2.0.2 • Published 8 years ago

github-add-collab v2.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

github-add-collab Build Status

Add collaborators to GitHub repos

Install

$ npm install --save github-add-collab

Usage

const githubAddCollab = require('github-add-collab');

githubAddCollab('johndoe', ['github-add-collab', 'yeoman/yo'], {
	token: '523ef691191'
}).then(data => {
	console.log('Successfully added user johndoe to github-add-collab and yeoman/yo');
});

API

githubAddCollab(user, repos, options)

Returns a promise for an array.

user

Required Type: string

Username to add as collaborator.

repos

Type: array

Repos to add the collaborator to.

options

token

Required Type: string

Token to authenticate with. If you don't have a token you can generate a new one here.

addToAll

Type: boolean

If no repos are defined and this option is set to true it'll add the user to all repositories that the token has access to.

addToSources

Type: boolean

If no repos are defined and this option is set to true it'll add the user to all non-forked repositories that the token has access to.

Related

License

MIT © Kevin Mårtensson

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.3.1

9 years ago

1.3.0

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.1.0

9 years ago