npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@goodrequest/jira-changelog

v3.0.0

Published

Generates a changelog by matching git commits to Jira tickets.

Readme

Jira Changelog Generator

Generates a changelog of Jira issues from your git history and, optionally, attaches all issues to a release.

For example:

jira-changelog --range origin/prod...origin/master
Jira Tickets
---------------------

 * <Bug> - Unable to access date widget
   [DEV-1234] https://yoursite.atlassian.net/browse/DEV-1234

 * <Story> - Support left-handed keyboards
   [DEV-5678] https://yoursite.atlassian.net/browse/DEV-5678

Other Commits
---------------------

 * Jeremy - <cd6f512> - Fix typo in welcome message

Pending Approval
---------------------
 ~ None. Yay! ~

The script looks for Jira issue keys surrounded by square brackets, such as [DEV-123], in git commit logs. When it finds one, it fetches the Jira issue and adds it to the changelog.

Installation

npm install -g @goodrequest/jira-changelog

Jira setup

Create an Atlassian API token for the account that should read Jira issues. By default, this package uses Atlassian API Gateway mode, which supports the newer scoped Jira API tokens and calls Jira at:

https://api.atlassian.com/ex/jira/<cloudId>/rest/api/3/...

You do not need to provide cloudId in normal usage. The tool resolves it from the configured Jira site host:

https://<your-site>.atlassian.net/_edge/tenant_info

Read-only changelog generation needs Jira issue read access. The --release flow also creates project versions and updates issue fixVersions, so that token needs the corresponding write/project permissions.

Configuration

Create changelog.config.js at the root of the git workspace where you run jira-changelog.

The GoodRequest reusable changelog workflow passes these environment variables to npm run changelog:

JIRA_API_HOST
JIRA_API_USER
JIRA_API_TOKEN
SLACK_BOT_TOKEN

A project config can therefore stay small:

module.exports = {
	jira: {
		api: {
			host: process.env.JIRA_API_HOST, // example: 'myapp.atlassian.net'
			email: process.env.JIRA_API_USER,
			token: process.env.JIRA_API_TOKEN
		},
		baseUrl: `https://${process.env.JIRA_API_HOST}`
	},
	slack: {
		apiKey: process.env.SLACK_BOT_TOKEN,
		channel: '#changelogs'
	},
	save: true
}

host should be your Jira site host, not api.atlassian.com. The package builds the API Gateway URL internally and resolves cloudId from the host when needed.

If a project intentionally needs the older site-host REST API behavior, opt out explicitly:

module.exports = {
	jira: {
		api: {
			host: process.env.JIRA_API_HOST,
			email: process.env.JIRA_API_USER,
			token: process.env.JIRA_API_TOKEN,
			useApiGateway: false
		},
		baseUrl: `https://${process.env.JIRA_API_HOST}`
	}
}

Legacy mode calls Jira directly at:

https://<host>/rest/api/2/...

Usage

jira-changelog --range origin/prod...origin/master

If no range is provided, the sourceControl.defaultRange value from changelog.config.js is used.

Releases

You can automatically attach a release to all Jira issues in the changelog with the --release flag:

jira-changelog --release sprint-12

This creates the version if necessary and sets fixVersions on the included issues.

Slack

The script can also post the changelog to Slack. Add Slack configuration:

module.exports = {
	// ...
	slack: {
		apiKey: process.env.SLACK_BOT_TOKEN,
		channel: '#changelogs'
	}
}

Then run:

jira-changelog --slack

API

The changelog internals can also be used from Node:

const { Config, SourceControl, Jira } = require('@goodrequest/jira-changelog')

const gitRepoPath = '/home/user/source/'
const config = Config.readConfigFile(gitRepoPath)
const source = new SourceControl(config)
const jira = new Jira(config)

source.getCommitLogs(gitRepoPath, { from: 'origin/prod', to: 'origin/master' }).then((commits) => {
	jira.generate(commits).then((changelog) => {
		console.log(changelog)
	})
})

Custom output

The output is controlled by the EJS template in changelog.config.js. You can also define transformData and transformForSlack functions to customize generated data/content.