Add GitHub discussions total badge [GithubTotalDiscussions] (#6472)

* use headers from options passed as argument in request method

* add github total discussions badge

* use nonNegativeInteger for total discussion count

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
This commit is contained in:
Prafful Javare
2021-05-11 13:24:58 +05:30
committed by GitHub
parent 9dd2861c5a
commit a094c8a373
3 changed files with 90 additions and 0 deletions

View File

@@ -188,6 +188,7 @@ class GithubApiProvider {
'User-Agent': userAgent,
Accept: 'application/vnd.github.v3+json',
Authorization: `token ${tokenString}`,
...options.headers,
},
},
}