refactor(GitHubCommitActivity): switch to v4/GraphQL API (#6959)

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
This commit is contained in:
Caleb Cartwright
2021-08-29 17:59:36 +00:00
committed by GitHub
co-authored by repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
parent b02471ff42
commit 76ca283775
3 changed files with 161 additions and 50 deletions
@@ -33,6 +33,13 @@ t.create('commit activity (1 week)').get('/w/eslint/eslint.json').expectBadge({
message: isCommitActivity,
})
t.create('commit activity (custom branch)')
.get('/y/badges/squint/main.json')
.expectBadge({
label: 'commit activity',
message: isCommitActivity,
})
t.create('commit activity (repo not found)')
.get('/w/badges/helmets.json')
.expectBadge({