Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@changesets/changelog-github

Package Overview
Dependencies
Maintainers
1
Versions
23
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.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
240K
increased by4.34%
Maintainers
1
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 09 Oct 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc