Lines Matching +full:commits +full:-
4 * SPDX-License-Identifier: BSD-3-Clause
7 /* eslint-env es6 */
15 const ccConventionalChangelog = require("conventional-changelog-conventionalcommits/conventional-ch…
16 const ccParserOpts = require("conventional-changelog-conventionalcommits/parser-opts");
17 …st ccRecommendedBumpOpts = require("conventional-changelog-conventionalcommits/conventional-recomm…
18 const ccWriterOpts = require("conventional-changelog-conventionalcommits/writer-opts");
26 * Register a Handlebars helper that lets us generate Markdown lists that can support multi-line
30 Handlebars.registerHelper("tf-a-mdlist", function (indent, options) {
32 const first = spaces + "- ";
42 Handlebars.registerHelper("tf-a-concat", function () {
70 Handlebars.registerHelper("tf-a-notes", function (noteGroups, options) {
80 * Don't return a section if it contains no notes and no sub-sections.
101 * Register a helper to return a restructured version of the commit groups that includes commits
104 Handlebars.registerHelper("tf-a-commits", function (commitGroups, options) {
105 const generateTemplateData = function (sections, commits) { argument
109 sections: generateTemplateData(section.sections, commits),
110 commits: commits.filter(commit => section.scopes?.includes(commit.scope)), property
114 * Don't return a section if it contains no notes and no sub-sections.
116 if ((templateData.sections.length == 0) && (templateData.commits.length == 0)) {
127 sections: generateTemplateData(config.sections, commitGroup.commits),
128 commits: commitGroup.commits.filter(commit =>
151 const notePartial = readFileSync(resolve(__dirname, "./templates/note.hbs"), "utf-8");
152 …nst noteSectionPartial = readFileSync(resolve(__dirname, "./templates/note-section.hbs"), "utf-8");
153 …commitSectionPartial = readFileSync(resolve(__dirname, "./templates/commit-section.hbs"), "utf-8");
155 Handlebars.registerPartial("tf-a-note", notePartial);
156 Handlebars.registerPartial("tf-a-note-section", noteSectionPartial);
157 Handlebars.registerPartial("tf-a-commit-section", commitSectionPartial);
161 * similar to the pre-Conventional Commits TF-A changelog.
163 … writerOpts.mainTemplate = readFileSync(resolve(__dirname, "./templates/template.hbs"), "utf-8");
164 … writerOpts.headerPartial = readFileSync(resolve(__dirname, "./templates/header.hbs"), "utf-8");
165 … writerOpts.commitPartial = readFileSync(resolve(__dirname, "./templates/commit.hbs"), "utf-8");
166 … writerOpts.footerPartial = readFileSync(resolve(__dirname, "./templates/footer.hbs"), "utf-8");
175 const trailers = execa.sync("git", ["interpret-trailers", "--parse"], {