예제 #1
0
        /// <summary>
        /// Gets an existing GitHub release by ID.
        /// </summary>
        /// <param name="id">The ID of the release.</param>
        /// <returns>The release.</returns>
        public async Task <Release> GetReleaseAsync(int id)
        {
            var octokitRelease = await _gitHubApi.GetReleaseAsync(id)
                                 .ConfigureAwait(false);

            return(new Release(octokitRelease));
        }