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

changelogen-jira-plugin

v0.1.0

Published

JIRA integration plugin for changelogen

Downloads

136

Readme

Changelogen 💅 JIRA Plugin

A JIRA integration plugin for changelogen that automatically detects and links JIRA tickets in commit messages.

Features

  • 🎯 Automatic Detection: Finds JIRA ticket references in commit messages and bodies
  • 🔗 Smart Linking: Generates clickable links to JIRA tickets in changelogs
  • ⚙️ Configurable: Customize project keys, base URL, and ticket patterns
  • 🚀 Zero Dependencies: Lightweight plugin with no runtime dependencies
  • 📝 TypeScript: Full TypeScript support with type definitions

Installation

npm install changelogen-jira-plugin
# or
pnpm add changelogen-jira-plugin
# or
yarn add changelogen-jira-plugin

Usage

Add the plugin to your changelog.config.js:

export default {
  plugins: {
    "changelogen-jira-plugin": {
      baseUrl: "https://your-company.atlassian.net",
      projectKeys: ["PROJ", "TASK", "BUG"],
    },
  },
};

Configuration

Required Options

  • baseUrl (string): Your JIRA instance base URL
  • projectKeys (string[]): Array of JIRA project keys to match

Optional Options

  • ticketPattern (RegExp): Custom regex pattern for ticket matching
    • Default: /([A-Z]+-\d+)/g

Example Configuration

export default {
  plugins: {
    "changelogen-jira-plugin": {
      baseUrl: "https://company.atlassian.net",
      projectKeys: ["FRONTEND", "BACKEND", "INFRA"],
      ticketPattern: /([A-Z]{2,}-\d{3,})/g, // Custom pattern
    },
  },
};

How It Works

The plugin scans commit messages and bodies for JIRA ticket references that match:

  1. The configured ticketPattern (default: uppercase letters, dash, numbers)
  2. One of the specified projectKeys

Example Commit Processing

Input commit:

feat: add user authentication FRONTEND-123

Implements OAuth2 flow for user login.
Also fixes BACKEND-456 API endpoint.

Output in changelog:

  • Adds clickable links: FRONTEND-123https://company.atlassian.net/browse/FRONTEND-123
  • Adds clickable links: BACKEND-456https://company.atlassian.net/browse/BACKEND-456

TypeScript Support

The plugin is written in TypeScript and provides full type definitions:

import type { JiraPluginConfig } from "changelogen-jira-plugin";

const config: JiraPluginConfig = {
  baseUrl: "https://company.atlassian.net",
  projectKeys: ["PROJ"],
  ticketPattern: /([A-Z]+-\d+)/g,
};

Development

Setup

git clone <repository-url>
cd changelogen-jira-plugin
pnpm install

Scripts

# Build the plugin
pnpm build

# Run tests
pnpm test

# Run tests in watch mode
pnpm test:watch

# Lint code
pnpm lint

# Fix linting issues
pnpm lint:fix

Testing

The plugin includes comprehensive tests covering:

  • Ticket detection in commit messages and bodies
  • Multiple tickets per commit
  • Project key filtering
  • Custom ticket patterns
  • Preservation of existing references

Run tests with:

pnpm test

Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes and add tests
  4. Ensure tests pass: pnpm test
  5. Commit your changes: git commit -m 'feat: add amazing feature'
  6. Push to the branch: git push origin feature/amazing-feature
  7. Open a Pull Request

License

MIT License - see LICENSE file for details.

Related