示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GitHubActionsPullRequestSystem"/> class.
        /// </summary>
        /// <param name="context">The Cake context.</param>
        /// <param name="settings">Settings for writing the issues to GitHub Actions.</param>
        public GitHubActionsPullRequestSystem(ICakeContext context, GitHubActionsBuildSettings settings)
            : base(context?.Log)
        {
            settings.NotNull(nameof(settings));

            this.settings = settings;
        }
示例#2
0
        public static IPullRequestSystem GitHubActionsBuilds(
            this ICakeContext context,
            GitHubActionsBuildSettings settings)
        {
            context.NotNull(nameof(context));
            settings.NotNull(nameof(settings));

            return(new GitHubActionsPullRequestSystem(context, settings));
        }