/// <summary> /// Fetches available releases from Github. /// </summary> /// <param name="fromFile">If set to <c>true</c>, the releases will not be fetched /// from Github, but instead be read from a local file.</param> private async Task GetReleases(bool fromFile = false) { this.Releases = await GithubHelper.GetReleases(this.EnablePreReleases, fromFile); this.HasReleases = this.Releases.Length > 0; if (!this.HasReleases) { return; } Log.Information($"Found {this.Releases?.Count()} releases"); this.SelectedRelease = this.Releases.OrderByDescending(r => r.published_at).FirstOrDefault(); }