absolute-version / commit-and-tag-version

Fork of the excellent standard-version. Automate versioning and CHANGELOG generation, with semver.org and conventionalcommits.org :trophy:
ISC License
425 stars 40 forks source link

bug: "see" in commit message results in "closes" in changelog #189

Open davidsneighbour opened 2 months ago

davidsneighbour commented 2 months ago

My commit message:

git commit -m "chore(config): add dnbhub.xyz to connect-src and img-src in CSP

see #1211"

Running commit-and-tag-version:

RELEASE_NOTES="$(npx commit-and-tag-version --dry-run | awk 'BEGIN { flag=0 } /^---$/ { if (flag == 0) { flag=1 } else { flag=2 }; next } flag == 1')"
echo "${RELEASE_NOTES}" > changes.md

(it's an excellent way to have my changelog in the pre-release hook)

The changelog:

## [2024.5.6](https://github.com/davidsneighbour/kollitsch.dev/compare/v2024.5.5...v2024.5.6) (2024-09-20)

### Chore

* **config:** add dnbhub.xyz to connect-src and img-src in CSP ([0d38925](https://github.com/davidsneighbour/kollitsch.dev/commit/0d3892588e4ff49597d52404baad134c8fb9d0cc)), closes [#1211](https://github.com/davidsneighbour/kollitsch.dev/issues/1211)

Expected result:

Not sure why it replaces the see with closes. It should take whatever verb I am using, or at least the available verbs for autolinking in Github. see results in a link to the issue without closing it and works on the commit.

TimothyJones commented 2 months ago

Thanks for the report! I agree with you, this isn’t ideal or expected behaviour. Unfortunately, the problem isn’t in this repository, it’s in one of the conventional changelog dependencies. I’m travelling at the moment, so it’s not easy to find out which one, but I’ll comment back in a week or so if I haven’t heard back.