Skip to content

redhat: make genlog.py to not ignore everything when notes are present

JIRA: INTERNAL Upstream Status: RHEL Only

Right now the changelog parsing ignores any changelog metadata if git notes are present. So when you add git notes, it forces you to duplicate or replicate in the notes information that may already be in the changelog. This change aims to avoid this, so it now can consider also commit metadata if git notes are not overriding the related or specific tags. This requires some translation because for example while a commit can contain a Bugzilla ticket, notes will list it as Z-Bugzilla tag.

While doing this, we also need to consider 'O-' tags that are in the zstream commit changelog, that way we can exclude the need of specifying git notes if all the metadata is already in the changelog, so no need anymore to add for example a Z-JIRA plus JIRA note if JIRA and O-JIRA fields are present in the changelog.

Signed-off-by: Herton R. Krzesinski herton@redhat.com

Merge request reports