public static Task <IReadOnlyCollection <Release> > GetAllReleasesAsync( this ICakeContext _, GitHubReleaseSettings settings) { if (settings == null) { throw new ArgumentNullException(nameof(settings)); } settings.EnsureValid(); return(settings.Releaser.GetAllReleasesAsync()); }
public static Task DeleteGitHubReleaseAsync( this ICakeContext _, string tagName, GitHubReleaseSettings settings) { if (settings == null) { throw new ArgumentNullException(nameof(settings)); } settings.EnsureValid(); return(settings.Releaser.DeleteReleaseAsync(tagName)); }
public static Task <Release> GetReleaseAsync( this ICakeContext _, int id, GitHubReleaseSettings settings) { if (settings == null) { throw new ArgumentNullException(nameof(settings)); } settings.EnsureValid(); return(settings.Releaser.GetReleaseAsync(id)); }