Code Monkey home page Code Monkey logo

gh's Introduction

gh

pipeline

GitHub tools

install

  • install go
  • run make install

setup

Project works with public repositories out of the box. To be able to use it with private repositories, create personal access token on GitHub and export it under GITHUB_TOKEN env. variable.

clone all repositories

# clones repositories for specified org to current directory, if GITHUB_TOKEN env. variable is
# exported, private # repositories are cloned as well
# flags:
#   -o, --output   git clone destination directory, defaults to current directory
gh clone org-repos <org>

# clones repositories for specified user to current directory, either user has to be specified
# (all public repositories # are cloned) or GITHUB_TOKEN env. variable has to be exported (all
# repositories owned by the user are cloned)
# flags:
#   -o, --output   git clone destination directory, defaults to current directory
gh clone user-repos [user]

example

$ gh clone org-repos ori-edge
1:00PM INF got 2 repositories
Enumerating objects: 10, done.
Counting objects: 100% (10/10), done.
Compressing objects: 100% (9/9), done.
Total 10 (delta 1), reused 6 (delta 0), pack-reused 0
1:00:05 INF cloned https://github.com/ori-edge/all-in-one-opennebula.git to /tmp/github.com/all-in-one-opennebula
1:00:06 WRN git clone: repository https://github.com/ori-edge/k8s_gateway.git already exists in /tmp/github.com/k8s_gateway

list all repositories

# lists repositories for specified org, if GITHUB_TOKEN env. variable is exported, private
# repositories are listed as well
# flags:
#   --no-forks         exclude forked repositories in the list
#   --sort-by string   sort output by visibility, size, language, issues or stars
gh list org-repos <org>

# lists repositories for specified user, either user has to be specified (all public
# repositories are listed) or GITHUB_TOKEN env. variable has to be exported (all
# repositories owned by the user are listed)
# flags:
#   --no-forks         exclude forked repositories in the list
#   --sort-by string   sort output by visibility, size, language, issues or stars
gh list user-repos [user]

example

$ gh list user-repos kiich
Name                      Visibility Size  Language Issues Stars Topics Fork
ansible-recipes           public     21    Python   0      0     []     true
flux-get-started          public     79    Smarty   0      0     []     true
helm                      public     4908  Go       0      0     []     true
helm-operator-get-started public     544            0      0     []     true
kube-aws                  public     36151 Go       0      0     []     true
logrotate                 public     60    Shell    0      0     []     true

gh's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar pete911 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

gh's Issues

Dependabot can't resolve your Go dependency files

Dependabot can't resolve your Go dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

github.com/pete911/gh/cmd: cannot find module providing package github.com/pete911/gh/cmd

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Go dependency files

Dependabot can't resolve your Go dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

github.com/pete911/gh/cmd: cannot find module providing package github.com/pete911/gh/cmd

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Go dependency files

Dependabot can't resolve your Go dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

github.com/pete911/gh/cmd: cannot find module providing package github.com/pete911/gh/cmd

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

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.