feat: fix list contributors and add patched apps changelog (wip)

This commit is contained in:
Alberto Ponces 2022-08-26 02:01:53 +01:00
parent bfbcb510c4
commit 45f4a5b207
7 changed files with 88 additions and 69 deletions

View file

@ -56,13 +56,14 @@ class GithubAPI {
}
Future<List<Contributor>> getContributors(String org, repoName) async {
try {
var contributors = _github.repositories.listContributors(
RepositorySlug(org, repoName),
);
return contributors.toList();
} on Exception {
return List.empty();
}
return await (_github.repositories.listContributors(
RepositorySlug(org, repoName),
)).toList();
}
Future<List<RepositoryCommit>> getCommits(String org, repoName) async {
return await (_github.repositories.listCommits(
RepositorySlug(org, repoName),
)).toList();
}
}