You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 21, 2025. It is now read-only.
Then drop individual scripts from this repo into your $PATH and edit them or use
them as you see fit.
How to contribute
I would love to accept your scripts into this repository! Please send your pull
requests. The prerequisites for submission are simple:
Your script should do something useful or interesting with the GitHub API
using the hub api command. Either REST or GraphQL APIs might be used.
The script should be written in one of the widespread shells such as bash or
zsh, or in often-available interpreted languages such as ruby, node, or
python.
When shelling out to other commands, please try to stick to jq and the POSIX
set of command-line utilities to keep scripts portable.
There are no other rules. Go wild! But please note that when you do submit
contributions to this repository, you are releasing your code into the public
domain per LICENSE.
Tips for hub api
The GitHub REST API can be queried like so:
# The placeholders "{owner}" and "{repo}" get populated with values from the# current git repository:
hub api 'repos/{owner}/{repo}/issues'
The response is always JSON, which can be parsed using jq in shell scripts.
Alternatively, you may specify the --flat flag to have hub api output data
in a line-based format.