Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/maxlath/backup-github-repo
- Owner: maxlath
- Created: 2018-05-24T18:40:21.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-07-17T15:53:02.000Z (6 months ago)
- Last Synced: 2024-08-03T15:16:36.796Z (5 months ago)
- Topics: backup, files, github, html, issues, json, pr, pull-requests
- Language: JavaScript
- Homepage:
- Size: 792 KB
- Stars: 38
- Watchers: 3
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome-starred - 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 (html)
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