GithubHelp home page GithubHelp logo

eunicetravassos / gh Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kevenleone/gh

0.0 0.0 0.0 2.02 MB

A super simple Github CLI to handle Pull Request

License: MIT License

Shell 0.10% JavaScript 3.18% TypeScript 96.73%

gh's Introduction

PRs Welcome License MIT

Simple CLI to help users with Github Commands using google/zx

๐Ÿ  Getting started

This project is a helper, to guide and help begginers with tipical activities used at Liferay, to interact with Github, such as Send, List and Get a Pull Request from some fork;

The project is under development and may not be fit 100% your needs. So, if you want something more robust, I'd like to suggest using Github CLI or Node-GH

Actually, this project has some inspiration with Node-GH.

๐Ÿ“– Requirement

Node.js >= 14.8.0 Git >= 1.7.0

โšก Install

npm i -g yarn # Skip if you already use it
npm i -g zx
yarn
yarn link

After run yarn link an alias you'll be added into you aliases type gitray into any git project to see if it's working.

โš™๏ธ Configuration

After everything setup, open a terminal of your preference and type gitray step, like this;

First access configuration

You need to fill some fields;

  • What is your GitHub username: Is the user you're signed in.
  • What is your GitHub Signature: This Signature is used when you are fetching a PR from someone and a message is added there.
  • What is your GitHub Token: You need to create a GitHub Personal Access Token for this. Follow these steps:
    • Login in your Github Account
    • Go to this page: https://github.com/settings/tokens
    • Generate new token
    • Generate Token
    • Put a fancy name, on Note Input
    • Put expiration date you want, I suggest to choose a longer expiration date, or no expiration for this.
    • On Select Scopes, check all the boxes inside repo
    • On the bottom, click on Generate Token
    • After generate a token, you'll be redirect to other screen, copy the generated token inside the green box, and use as GitHub Token in this CLI.
    • Generated Token
  • What is your Branch Prefix: Whenever you fetch a PR from someone, a branch is created using this prefix and the Pull Request ID, if you are fetching the 100 from pt-liferay-solutions/liferay-portal a branch called pr-100 will be created.

And after the first access configuration, this will'be the first screen

First access configuration

๐Ÿค Contributing

If you liked the project and want to cooperate feel free to fork this repository and send Pull Requests.

All kinds of contributions are very welcome and appreciated

  • โญ๏ธ Star the project
  • ๐Ÿ› Find and report issues
  • ๐Ÿ“ฅ Submit PRs to help solve issues or add features

๐Ÿ“– License

MIT license, Copyright (c) 2021 Keven Leone.

gh's People

Contributors

kevenleone 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.