Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maxlath/backup-github-repo

Backup all the issues and pull requests of a Github repo, including the comments, events, and labels, as JSON and as HTML
https://github.com/maxlath/backup-github-repo

backup files github html issues json pr pull-requests

Last synced: 2 months ago
JSON representation

Backup all the issues and pull requests of a Github repo, including the comments, events, and labels, as JSON and as HTML

Awesome Lists containing this project

README

        

# backup-github-repo

Backup all the issues and pull requests of a Github repo, including the comments, events, and labels, as JSON and as HTML.

[![NPM](https://nodei.co/npm/backup-github-repo.png?stars&downloads&downloadRank)](https://npmjs.com/package/backup-github-repo/)

**Features**
* generate a JSON file with all the issues and pull requests, including comments ([demo](https://github.com/maxlath/backup-github-repo/blob/master/demo/data.json))
* generate one HTML file per issue or pull request ([demo](https://github.com/maxlath/backup-github-repo/tree/master/demo/html))
* download CSS files and images locally to allow offline browsing ([demo](https://github.com/maxlath/backup-github-repo/tree/master/demo/html/assets))

**Known limitations**
* **Private repos**: while JSON download works, the tool will fail to download HTML versions (see [issue](https://github.com/maxlath/backup-github-repo/issues/2))

## Dependencies
* [NodeJS](https://nodejs.org) >= 7.6
* [curl](https://curl.se/)
* [jq](https://stedolan.github.io/jq/)

## Install
```sh
npm install -g backup-github-repo
```

## Run

### Local repository
```sh
cd /path/to/my/repo/to/backup
# First run will give you instructions to set a Github API token
backup-github-repo
```

### Specify repository by URL
```sh
backup-github-repo https://github.com/maxlath/backup-github-repo
```

## License
MIT