Exemplo n.º 1
0
        protected CommitMessage GetCommitMessage(
            string?type                 = null,
            string?scope                = null,
            string?description          = null,
            bool?isBreakingChange       = null,
            IReadOnlyList <string>?body = null,
            IReadOnlyList <CommitMessageFooter>?footers = null)
        {
            var header = new CommitMessageHeader(
                type == null ? CommitType.Feature : new CommitType(type),
                description ?? "Example Summary",
                scope,
                isBreakingChange ?? false);

            return(new CommitMessage(
                       header,
                       body ?? Array.Empty <string>(),
                       footers ?? Array.Empty <CommitMessageFooter>()
                       ));
        }
Exemplo n.º 2
0
 internal XunitSerializableCommitMessageHeader(CommitMessageHeader value) => Value = value;