{"size": 395, "ext": "js", "max_stars_repo_path": "lib/get_repo_data.js", "max_stars_repo_name": "maxlath/backup-github-repo", "max_stars_repo_stars_event_min_datetime": "2019-05-09T15:13:51.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-15T10:58:22.000Z", "max_issues_repo_path": "lib/get_repo_data.js", "max_issues_repo_name": "ttldtor/backup-github-repo", "max_issues_repo_issues_event_min_datetime": "2019-05-03T10:57:53.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-04T15:02:10.000Z", "max_forks_repo_path": "lib/get_repo_data.js", "max_forks_repo_name": "ttldtor/backup-github-repo", "max_forks_repo_forks_event_min_datetime": "2020-06-25T09:46:10.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-25T06:40:58.000Z"}
{"max_stars_count": 25, "max_issues_count": 5, "max_forks_count": 4, "avg_line_length": 30.3846153846, "max_line_length": 73, "alphanum_fraction": 0.7316455696}
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)
}
