GithubHelp home page GithubHelp logo

lholmquist / node-core-utils Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nodejs/node-core-utils

0.0 2.0 0.0 1.11 MB

CLI tools for Node.js Core collaborators

License: MIT License

JavaScript 100.00%

node-core-utils's Introduction

Node.js Core Utilities

npm Build Status AppVeyor Build Status codecov Known Vulnerabilities

CLI tools for Node.js Core collaborators.

Tools

  • git-node: Custom Git commands for working with Node.js core, e.g. landing Pull Requests.
  • ncu-config: Configure variables for node-core-utils to use.
  • ncu-team: Listing members of a team, synchronizing special blocks in files with the list of members.
  • get-metadata: Retrieving metadata for a Pull Request. DEPRECATED: use git node metadata instead.
  • ncu-ci: Parse the results of a Jenkins CI run and display a summary for all the failures.

Usage

Install

npm install -g node-core-utils

If you would prefer to build from the source, install and link:

git clone [email protected]:nodejs/node-core-utils.git
cd node-core-utils
npm install
npm link

Setting up credentials

Most of the tools need your GitHub credentials to work. You can either

  1. Run any of the tools and you will be asked in a prompt to provide your username and password in order to create a personal access token.
  2. Or, create a personal access token yourself on GitHub, then set them up using an editor.

If you prefer option 2, follow these instructions to create the token.

When creating the token, the following boxes need to be checked:

  • user:email: Used by git-node and get-metadata to read the email of the PR author in order to check if it matches the email of the commit author.
  • read:org: Used by ncu-team to read the list of team members.

You can also edit the permission of existing tokens later.

After the token is generated, create an rc file with the following content: (~/.ncurc or $XDG_CONFIG_HOME/ncurc):

{
  "username": "your_github_username",
  "token": "token_that_you_created"
}

Note: you could use ncu-config to configure these variables, but it's not recommended to leave your tokens in your command line history.

Make sure your credentials won't be committed

Put the following entries into ~/.gitignore_global

# node-core-utils configuration file
.ncurc
# node-core-utils working directory
.ncu

Mind that.ncu/land could contain your access token since it contains the serialized configurations.

If you ever accidentally commit your access token on GitHub, you can simply revoke that token and use a new one.

Contributing

See CONTRIBUTING.md.

License

MIT. See LICENSE.

node-core-utils's People

Contributors

joyeecheung avatar targos avatar priyank-p avatar alopezsanchez avatar apapirovski avatar addaleax avatar trivikr avatar tniessen avatar sam-github avatar tiriel avatar ryzokuken avatar hiroppy avatar richardlau avatar zyszys avatar maclover7 avatar vsemozhetbyt avatar mm422 avatar devsnek avatar bfarias-godaddy avatar ad-si avatar aks- avatar boneskull avatar gibfahn avatar kfarnung avatar mylesborins avatar refack avatar trott avatar srl295 avatar hashseed avatar ah-yu avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.