GitHostSetup: Allow the user to choose between repos

This way they don't need to use a repo called 'journal'.
This commit is contained in:
Vishesh Handa
2020-05-15 15:28:44 +02:00
parent 2cc1707ef7
commit 18db4899b2
7 changed files with 381 additions and 43 deletions

View File

@ -210,9 +210,16 @@ class GitHub implements GitHost {
}
GitHostRepo _repoFromJson(Map<String, dynamic> parsedJson) {
DateTime updatedAt;
try {
updatedAt = DateTime.parse(parsedJson['updated_at'].toString());
} catch (e) {
Log.e(e);
}
return GitHostRepo(
fullName: parsedJson['full_name'],
cloneUrl: parsedJson['ssh_url'],
updatedAt: updatedAt,
);
}