Generates an rpm %changelog entry from git history and prepends it
to the target spec file. Runs in release CI so every tag push gets
a fresh dated entry covering the commits since the previous matching
tag. Avoids stale dates, forgotten bumps, and bogus-weekday warnings.
Inputs: spec path, version, optional release suffix, author,
tag-pattern, exclude-patterns. The last two make the defaults (v*
tags, filter bump-version chores and merges) tweakable for projects
with different conventions.
Migrated from inline logic in helexa/cortex so any project can
adopt the same pattern with a single uses: reference.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>