Socket
Socket
Sign inDemoInstall

github-add-collab

Package Overview
Dependencies
156
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github-add-collab

Add collaborators to Github repos


Version published
Weekly downloads
13
increased by550%
Maintainers
2
Install size
7.40 MB
Created
Weekly downloads
 

Readme

Source

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.

License

MIT © Kevin Mårtensson

Keywords

FAQs

Last updated on 02 Jun 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc