Giter Site home page Giter Site logo

sandarvashakya / good-first-issues Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yankeexe/good-first-issues

0.0 1.0 0.0 14 KB

Find good first issues right from your CLI! ๐Ÿš€

Home Page: https://pypi.org/project/good-first-issues/

License: MIT License

Python 100.00%

good-first-issues's Introduction

Known Vulnerabilities

Good First Issues

Find good first issues right from your CLI!

Install Good First Issues

Requires Python 3.6.1 or higher.

pip3 install good-first-issues

The CLI uses the alias gfi to run commands.

good first issues

Contents

Create GitHub Personal Access Token:

The CLI requires GitHub Personal Access Token to make requests to the GitHub API.

Get GitHub Personal Access Token

You don't have to select any scopes, add a Note for your token and select Generate token.

Provide token to CLI:

gfi config

Token is stored locally on /home/<username>/.gfi/good-first-issues file.

Usage

GitHub provides API using both REST and GraphQL, each with 5000 requests per hour with the Personal Access Token.

You can switch between these APIs but using the GraphQL option is faster and efficient!

There are two ways you can get good first issues:

  1. query all the repos in a user or an organization profile.
  2. query a particular repo in a user or an organization profile.

GraphQL

To use the GraphQL option use the gfi gql command.

Query all the repos in a user or an organization profile.

# Query all repos in an organization
gfi gql "rust-lang"

# Query all repos in a user profile
gfi gql "sindresorhus" --user

Query a particular repo in a user or an organization profile.

# Query a single repo in an organization
gfi gql "rust-lang" --repo "rust"

# Query a single repo in a user profile
# No --user flag needed.
gfi gql "sindresorhus" --repo "awesome"

Changing output limits

The output is limited to display 10 issues by default. Use --limit flag to set the number of issues for output or --all for no limits.

# Limit the issues to 20
gfi gql "rust-lang" --limit 20

# View all issues found.
gfi gql "rust-lang" --all

Viewing issues on browser

It's hard to navigate through all the issues when you have the --all flag enabled, you can view the issues on your browser with ease using the --web flag.

gfi gql "rust-lang" --all --web

REST API

To use the GraphQL option use the gfi get command.

Query all the repos in a user or an organization profile.

# Query all repos in an organization
gfi get "rust-lang"

# Query all repos in a user profile
gfi get "sindresorhus"

Changing output limits

The output is limited to display 10 issues by default. Use --limit flag to set the number of issues for output or --all for no limits.

# Limit the issues to 20
gfi get "rust-lang" --limit 20

# View all issues found.
gfi get "rust-lang" --all

Viewing issues on browser

It's hard to navigate through all the issues when you have the --all flag enabled, you can view the issues on your browser with ease using the --web flag.

gfi gql "rust-lang" --all --web

Contributing

For guidance on setting up a development environment and how to make a contribution to Flask, see the contributing guidelines.

good-first-issues's People

Contributors

yankeexe avatar

Watchers

 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.