Exemplo n.º 1
0
        public static FileLinkSettings IssueFileLinkSettingsForGitHubCommit(
            this ICakeContext context,
            Uri repositoryUrl,
            string commitId,
            string rootPath)
        {
            context.NotNull(nameof(context));
            repositoryUrl.NotNull(nameof(repositoryUrl));
            commitId.NotNullOrWhiteSpace(nameof(commitId));

            return
                (FileLinkSettings
                 .ForGitHub(repositoryUrl)
                 .Commit(commitId)
                 .WithRootPath(rootPath));
        }
Exemplo n.º 2
0
        public static FileLinkSettings IssueFileLinkSettingsForGitHubBranch(
            this ICakeContext context,
            Uri repositoryUrl,
            string branch,
            string rootPath)
        {
            context.NotNull(nameof(context));
            repositoryUrl.NotNull(nameof(repositoryUrl));
            branch.NotNullOrWhiteSpace(nameof(branch));

            return
                (FileLinkSettings
                 .ForGitHub(repositoryUrl)
                 .Branch(branch)
                 .WithRootPath(rootPath));
        }