private Uri FormatUrl(string relativeUrl) { Debug.Assert(ProjectName != null); var baseUrl = new Uri("https://github.com/api/v2/json/"); return string.IsNullOrEmpty(relativeUrl) ? baseUrl : new Uri(baseUrl, relativeUrl); }