UNPKG

backup-github-repo

Version:

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

13 lines (10 loc) 395 B
const getRepoName = require('./repo_name') const { grey } = require('chalk') const getPagesSequentially = require('./get_pages_sequentially') const addEntryDataSequentially = require('./add_entry_data_sequentially') module.exports = ({ url }) => { const repo = getRepoName({ url }) console.log(grey(`repo: ${repo}`)) return getPagesSequentially(repo) .then(addEntryDataSequentially) }