A command line utility to download your GitHub pull requests and gists, built using Laravel Zero.
composer install
Create a GitHub token with the following permissions:
repo
repo:status
repo_deployment
public_repo
repo:invite
security_events
admin:org
write:org
read:org
manage_runners:org
gist
Run cp .env.sh.sample .env.sh
to create a .env.sh
file in the project root, and add the token to it.
Then run source .env.sh
to make the token available.
Alternatively, you can add export GITHUB_TOKEN="your-token"
directly to your ZSH ~/.zprofile
or ~/.zshrc
instead.
To download pull requests: php application dl-prs <username>
To download gists: php application dl-gists
Your pull requests and gists JSON files will be downloaded to storage/prs
and storage/gists
.
Add the --zip
option to either command to get the output in a zip file.