feat: wip contributors screen.

This commit is contained in:
Aunali321
2022-08-12 23:37:16 +05:30
parent 4d3ea65d7f
commit 739673dd8f
13 changed files with 271 additions and 7 deletions

View File

@ -37,4 +37,16 @@ class GithubAPI {
}
return pushedAt;
}
Future<List<Contributor>> getContributors(String org, repoName) async {
try {
var contributors = await github.repositories.listContributors(
RepositorySlug(org, repoName),
);
return contributors.toList();
} on Exception {
print(Exception);
return [];
}
}
}