marcocesarato / php-conventional-changelog

A PHP tool built to generate a changelog from a project's commit messages and metadata following the conventionalcommits.org and automate versioning with semver.org.
GNU General Public License v3.0
227 stars 32 forks source link

Problem with issue detection in footer for org/user#issue #41

Open brunob opened 2 years ago

brunob commented 2 years ago

Hi, issues like Fix: #XX are detected, but things like Fix: spip-team/securite#483 (aka org/repo#issue) are not. I think it's handled here https://github.com/marcocesarato/php-conventional-changelog/blob/main/src/Git/Commit/Footer.php#L54 but i'm not sure. edit : Reference class should also be ehanced for that.

Do you think it could be possible to enhance this ? Are maybe it's out of scope ?

brunob commented 2 years ago

FTR, this regex should do the job '@(?:(?<![\/\w-.])\w[\w-.]+/\w[\w-.]+|\B)#[1-9]\d*\b@' ref https://regex101.com/r/SQrOlx/14