How to use the conventional-changelog.pipe function in conventional-changelog

To help you get started, we’ve selected a few conventional-changelog examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LokiJS-Forge / LokiDB / scripts / deploy.ts View on Github external
const changelog_lines = changelog.split("\n");

      CHANGELOG.header = changelog_lines.splice(0, 2).join("\n");
      CHANGELOG.changes = changelog_lines.splice(2, changelog_lines.length - 6).join("\n");

      // Get changelog body.
      const tag_message = run("git", ["cat-file", "-p", COMMIT_TAG])[1].toString().split("\n");
      if (tag_message[0].startsWith("object")) {
        CHANGELOG.body = tag_message.slice(5).join("\n");
      }

      resolve();
    });

    // Generate changelog from commit messages.
    require("conventional-changelog")({
      preset: "angular"
    }).pipe(changelog_buffer);
  });
}

conventional-changelog

Generate a changelog from git metadata

ISC
Latest version published 8 months ago

Package Health Score

91 / 100
Full package analysis