🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@changesets/changelog-github

Package Overview
Dependencies
Maintainers
4
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@changesets/changelog-github

A changelog entry generator for GitHub that links to commits, PRs and users

0.5.1
latest
Source
npm
Version published
Weekly downloads
686K
62.22%
Maintainers
4
Weekly downloads
 
Created

What is @changesets/changelog-github?

@changesets/changelog-github is an npm package designed to generate changelogs for your GitHub repository. It integrates with the Changesets workflow to automatically create detailed and formatted changelogs based on your commit history and pull requests.

What are @changesets/changelog-github's main functionalities?

Generate Changelog Entries

This feature allows you to generate a changelog entry for a specific changeset and version. The `getChangelogEntry` function takes a changeset object and a version string, and returns a formatted changelog entry.

const { getChangelogEntry } = require('@changesets/changelog-github');

async function generateChangelogEntry(changeset, version) {
  const entry = await getChangelogEntry(changeset, version);
  console.log(entry);
}

generateChangelogEntry({
  summary: 'Added new feature',
  releases: [{ name: 'my-package', type: 'minor' }]
}, '1.1.0');

Custom Changelog Templates

This feature allows you to use custom templates for generating changelog entries. By providing a template function, you can customize the format of the changelog entries to fit your project's needs.

const { getChangelogEntry } = require('@changesets/changelog-github');

async function generateCustomChangelogEntry(changeset, version) {
  const entry = await getChangelogEntry(changeset, version, {
    template: ({ changeset, version }) => `## ${version}\n- ${changeset.summary}`
  });
  console.log(entry);
}

generateCustomChangelogEntry({
  summary: 'Fixed a bug',
  releases: [{ name: 'my-package', type: 'patch' }]
}, '1.0.1');

Other packages similar to @changesets/changelog-github

FAQs

Package last updated on 17 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts