コード例 #1
0
    public static Task <IReadOnlyCollection <Release> > GetAllReleasesAsync(
        this ICakeContext _, GitHubReleaseSettings settings)
    {
        if (settings == null)
        {
            throw new ArgumentNullException(nameof(settings));
        }

        settings.EnsureValid();

        return(settings.Releaser.GetAllReleasesAsync());
    }
コード例 #2
0
    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));
    }
コード例 #3
0
    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));
    }