Skip to content

A Laravel Zero tool to download GitHub PRs and Gists.

Notifications You must be signed in to change notification settings

ziadoz/github-download

Repository files navigation

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.

About

A Laravel Zero tool to download GitHub PRs and Gists.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published