({ accessToken, repoName, limit })
| 111 | } |
| 112 | |
| 113 | function getCommits({ accessToken, repoName, limit }) { |
| 114 | const github = getAPI({ accessToken }); |
| 115 | const [owner, repo] = repoName.split('/'); |
| 116 | |
| 117 | return github.repos.listCommits({ owner, repo, per_page: limit }); |
| 118 | } |
| 119 | |
| 120 | exports.setupGithub = setupGithub; |
| 121 | exports.getRepos = getRepos; |
no test coverage detected