Socket
Book a DemoInstallSign in
Socket

release-notes

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

release-notes

Generate release notes from recent pull requests

1.0.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

release-notes

npm

Generate markdown from all of the PRs that have been closed since your last release!

Originally used to generate notes for zapier-platform-cli and its related repos.

Usage

In its simplest form, invoking this pulls the names of all of the closed PRs since the last time the given repo had a release. If passed multiple repos, it'll use the most recent release of the first as the date to filter against.

For more info, run:

% release-notes -h

Limitations

Currently, this is only set up to pull from Github. It can be expanded to use other providers if there's interest though!

Private Repos

If you need to access private repos, use either the -t flag or set your GITHUB_API_TOKEN before invoking the CLI.

API

In addition to a CLI, this package exports two functions for use javascript:

releaseNotes

The main method, this does calls to the github API and returns an object with a list of closed PRs grouped by repo name.

formatMarkdown

Takes the above object of PRs and returns a nicely formatted markdown file. This is separate so if you want to build/parse the output yourself, it's easy to do.

It accepts an object with the following keys as the second parameter (all of which are optional):

KeyTypeDescription
keepOrgbooleanif true, list the repo as <ORG>/<REPO> instead of <REPO>. Defaults to false
orderstring[]print the repos in this order (which can be different than the supplied order)
versionstringpre-fills the version number. Prints MAJOR.MINOR.PATCH if missing

Keywords

typescript

FAQs

Package last updated on 03 Jul 2018

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.