steps: ignore source in commit msg
PATCH 1/1 steps: ignore source in commit msg
From: Daniel Turull <[email protected]>
The source is useful for identifying where the changelog comes from, but it does not need to be included in the commit message.
Keep it only if it is a URL.
--- modules/steps.py | 2 ++ 1 file changed, 2 insertions(+)
modules/steps.py +2 -0
@@ -103,6 +103,8 @@ def _append_changelog_to_commit_msg(group, opts): text = p['changelog_text'].strip() if text.startswith('Changelog for '): text = text[text.index('\n') + 1:].strip() + if text.startswith('Source: ') and not text.startswith('Source: http'): + text = text[text.index('\n') + 1:].strip() if len(text) > max_len: text = (text[:max_len] + "\n\n[Changelog truncated as it exceeds {} characters; \n" "the full changelog can be found in an attachment to the AUH email]".format(max_len))
modules/steps.py def _append_changelog_to_commit_msg(group, opts): · line 110
Quoted 9 lines · On Mon, 7 Sept 2026 at 15:14, <[email protected]> wrote:
modules/steps.py +2
-0@@ -103,6 +103,8 @@ def _append_changelog_to_commit_msg(group, opts): text = p['changelog_text'].strip() if text.startswith('Changelog for '): text = text[text.index('\n') + 1:].strip() + if text.startswith('Source: ') and not text.startswith('Source: http'): + text = text[text.index('\n') + 1:].strip() if len(text) > max_len: text = (text[:max_len] + "\n\n[Changelog truncated as it exceeds {} characters; \n" "the full changelog can be found in an attachment to the AUH email]".format(max_len))
This code block relies on brittle particularities of how devtool writes out the changelog file. I wonder if we can rather make it more structured, e.g. devtool writes out a json with all the metadata including the pointer (filename) where the actual changelog text is, and then auh can pick and format pieces the way it wants?
Alex
Quoted 20 lines · Alexander Kanavin
Quoted 4 lines · On Mon, 7 Sept 2026 at 15:14, <[email protected]> wrote:
modules/steps.py +0
-0@@ -103,6 +103,8 @@ def _append_changelog_to_commit_msg(group, opts): text = p['changelog_text'].strip()if
text.startswith('Changelog for '):
text = text[text.index('\n') + 1:].strip()Quoted 8 lines
+ if
text.startswith('Source: ')and not text.startswith('Source:
http'):
+ text = text[text.index('\n') + 1:].strip()
if len(text) >max_len:
text = (text[:max_len] + "\n\n[Changelog truncated as it exceeds {} characters; \n"
"the full changelog can be found in an attachment to the AUH email]".format(max_len))This code block relies on brittle particularities of how devtool writes out the changelog file. I wonder if we can rather make it more structured, e.g. devtool writes out a json with all the metadata including the pointer (filename) where the actual changelog text is, and then auh can pick and format pieces the way it wants?
Quoted 1 line
Alex
Hi,
Should we have the metadata in a separate file and keep a pure text with only the changelog? otherwise it may be less human friendly for people using the changelog text without the AUH.
metadata:
- packgage
- old version
- new version
- filename of the changelog
- changelog text or filename with the changelog text
Cheers
Daniel
Quoted 9 lines · Daniel Turull
Quoted 5 lines
This code block relies on brittle particularities of how devtool writes out the changelog file. I wonder if we can rather make it more structured, e.g. devtool writes out a json with all the metadata including the pointer (filename) where the actual changelog text is, and then auh can pick and format pieces the way it wants?
Should we have the metadata in a separate file and keep a pure text with only the changelog? otherwise it may be less human friendly for people using the changelog text without the AUH.
Quoted 6 lines
metadata:
- packgage
- old version
- new version
- filename of the changelog
- changelog text or filename with the changelog text
Yes, no walls of text in the json please. It should be short and sweet and nicely formatted with indentation. Actual changelog(s) in seperate file(s), as it is now.
Alex