A cURL wrapper that parses GitHub REST API v3. Making things like git CLI automation possible without git installed
setup ghc on system
curl https://raw.githubusercontent.com/wick3dr0se/github-api-curl/master/install.sh -O && bash install.sh
possible arguments to ghc
- issue list issues
- pull pull a repository
- push push a file to repository
- repo stat repository information
- contributors list repository contributors
- create create a repository
- delete delete a repository
- user stat user information
view a repository issue
accepts user, repo & issue number
ghc issue <user> <repo> <issue>
create a repository issue
accepts repo, title & body
ghc issue create <repo> <title> '<body>'
ghc issue cre <title> '<body>'
list repository issues
accepts user, repo & issue number
ghc issue list <user> <repo> <issue>
clones/pulls a github repository without .git
accepts user, repo & branch arguments
ghc pull <user> <repo> <branch>
ghc pull <user>/<repo>/<branch>
commits and pushes a file
accepts a repo, file & commit message
ghc push <file> '<commit message>'
ghc push <repo>/<file> '<commit message>'
gets user's repository information
accepts user & repo
ghc repo <user> <repo>
list repository contributors
accepts user & repo
ghc repo contributors <user> <repo>
ghc repo contrib <repo>
creates a repository
accepts a repo & description
ghc repo create <repo> <description>
ghc repo cre <repo>
deletes a repository
accepts a repo
ghc repo delete <repo>
ghc repo del <repo>
PAT requires delete_repo scope
gets user information
accepts a user
ghc user <user>