All of lore.kernel.org
 help / color / mirror / Atom feed
* [auh][PATCH] steps: ignore source in commit msg
@ 2026-09-07 13:12 daniel.turull
  2026-09-09  8:41 ` Alexander Kanavin
  0 siblings, 1 reply; 4+ messages in thread
From: daniel.turull @ 2026-09-07 13:12 UTC (permalink / raw)
  To: yocto-patches; +Cc: alex.kanavin, Daniel Turull

From: Daniel Turull <daniel.turull@ericsson.com>

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.

Signed-off-by: Daniel Turull <daniel.turull@ericsson.com>
---
 modules/steps.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/steps.py b/modules/steps.py
index a88e666..4adb23f 100644
--- a/modules/steps.py
+++ b/modules/steps.py
@@ -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))


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-09-14 10:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-07 13:12 [auh][PATCH] steps: ignore source in commit msg daniel.turull
2026-09-09  8:41 ` Alexander Kanavin
2026-09-10  7:14   ` Daniel Turull
2026-09-14 10:24     ` Alexander Kanavin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.