mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-09-20 15:00:28 +08:00
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:
@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user