mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
chore: release v1.0.0
This commit is contained in:
+2
-1
@@ -33,7 +33,8 @@ const bower = gulp.task('bower', async function () {
|
||||
|
||||
async function getContributors(user, repo, maxCount = 1) {
|
||||
const contributors = (await axios.get(
|
||||
`https://api.github.com/repos/${encodeURIComponent(user)}/${encodeURIComponent(repo)}/contributors?per_page=${maxCount}`
|
||||
`https://api.github.com/repos/${encodeURIComponent(user)}/${encodeURIComponent(repo)}/contributors`,
|
||||
{ params: { per_page: maxCount } }
|
||||
)).data;
|
||||
|
||||
return Promise.all(contributors.map(async (contributor)=> {
|
||||
|
||||
Reference in New Issue
Block a user