Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gkalpak/ng-cla-check

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gkalpak/ng-cla-check

A simple utility to check if an AngularJS PR has the `cla: yes` label.

  • 0.0.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

ng-cla-check

Description

A simple utility to check if an AngularJS PR has the cla: yes label.

Usage

Using in the command-line

# Show usage instructions
ng-cla-check --usage


# Check a PR
ng-cla-check 12345

You can optionally specify the GitHub repo and/or CLA label to check for (by default angular/angular.js and cla: yes respectively):

# Use non-default repo and CLA label
ng-cla-check 12345 --repo="some-user/some-repo" --claLabel="some text"

Note: To use a GitHub access-token, make it available in an environment variables names GITHUB_ACCESS_TOKEN.

Using in other modules

let Checker = require('ng-cla-check');
let checker = new Checker({
  ghToken: '...',   // If omitted, requests to the GitHub API will be rate limited.
  claLabel: '...',
  repo: '...'
}, quit);   // Pass true, to avoid any logging to the console.

checker.check(prNo).then(
    () => { /* CLA verified successfully. */ },
    err => {
      /* Unable to verify CLA... */
      if (err) {
        /* ...because an error occurred (e.g. network error, authentication error etc). */
      } else {
        /* ...because it was probably not signed. */
      }
    });

Keywords

FAQs

Package last updated on 12 Aug 2016

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