Lines Matching defs:commit
76 notes: notes.filter(note => section.scopes?.includes(note.commit.scope)),
95 !flattenedSections.some(section => section.scopes?.includes(note.commit.scope))),
101 * Register a helper to return a restructured version of the commit groups that includes commits
110 commits: commits.filter(commit => section.scopes?.includes(commit.scope)),
128 commits: commitGroup.commits.filter(commit =>
129 !flattenedSections.some(section => section.scopes?.includes(commit.scope))),
153 const commitSectionPartial = readFileSync(resolve(__dirname, "./templates/commit-section.hbs"), "utf-8");
157 Handlebars.registerPartial("tf-a-commit-section", commitSectionPartial);
165 writerOpts.commitPartial = readFileSync(resolve(__dirname, "./templates/commit.hbs"), "utf-8");
168 writerOpts.transform = function (commit, context) {
176 if ((commit.type === "build") && (commit.scope == null)) {
177 commit.scope = "build";
181 * Fix up commit trailers, which for some reason are not correctly recognized and
185 commit.notes.forEach(note => {
193 return ccWriterOptsTransform(commit, context);