Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1.05 KB

README.md

File metadata and controls

47 lines (30 loc) · 1.05 KB

GitHub Download

A command line utility to download your GitHub pull requests and gists, built using Laravel Zero.

Install

composer install

Setup

Token

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

Environment

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.

Usage

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.