issue-parser is a JavaScript library designed to parse actions, references, and mentions related to issues across various popular Git platforms including GitHub, GitLab, and Bitbucket. It identifies standard closing keywords (e.g., "Fix #1"), duplicate keywords, issue references (e.g., `#123`, `user/repo#456`), and user mentions (e.g., `@username`). The library also provides capabilities for defining custom action types and extending existing parsing formats, making it highly adaptable to specific project needs. The current stable version is 7.0.1. Releases follow semantic versioning, with major versions introducing breaking changes, typically driven by Node.js LTS updates or platform-specific keyword changes, and minor/patch versions for features and fixes. Its key differentiator lies in its comprehensive, configurable support for multiple Git platforms and its ability to parse a wide array of issue-related syntaxes, making it a robust tool for tasks like commit message analysis, changelog generation, or release automation. It is an integral part of the semantic-release ecosystem.
npm install issue-parserVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the issue parser for GitHub's format and parse a sample text containing issue references, closing keywords, and user mentions, logging the structured output.
Upgrade Node.js to version 18.17.x, 20.6.1+, or a newer compatible LTS release.
Review the v3.0.0 changelog and update your parser configuration and the way you access parsed results according to the new `actions` object and result format.
Remove any reliance on Waffle.io keyword parsing functionality. The library no longer supports these specific keywords.
Ensure that only supported delimiter characters (e.g., space, period, comma) are used between action keywords and issue references in the parsed text.
Upgrade Node.js to a version compatible with `^18.17 || >=20.6.1` using `nvm` or other version managers.
For ESM, use `import issueParser from 'issue-parser';`. For CommonJS, use `const issueParser = require('issue-parser');`.First, ensure your input string contains valid issue actions or references for the configured format. If upgrading from `v2.x`, review the `v3.0.0` breaking changes regarding the `options` and `result` format, especially the new `actions` object structure.
No dependency data recorded yet.