diff --git a/ymir/agents/backport_agent.py b/ymir/agents/backport_agent.py index f6d4f84b..83642b31 100644 --- a/ymir/agents/backport_agent.py +++ b/ymir/agents/backport_agent.py @@ -815,8 +815,6 @@ async def extract_source_changelog( continue for line in entry.content: - if re.match(r"^\s*[-\*]?\s*(resolves|related):", line, re.IGNORECASE): - continue if line not in seen: seen.add(line) collected_lines.append(line) diff --git a/ymir/agents/log_agent.py b/ymir/agents/log_agent.py index fbaeaf24..1186a6ac 100644 --- a/ymir/agents/log_agent.py +++ b/ymir/agents/log_agent.py @@ -43,8 +43,8 @@ def get_instructions() -> str: If a source changelog message is provided in the prompt, use those lines as the exact changelog message content. Keep the descriptive lines exactly as-is — do not - rephrase, summarize, or add to them. Add the Resolves/Related line - for , matching the style of existing changelog entries. + rephrase, summarize, or add to them. Only replace the Jira issue references + in any Resolves/Related lines with . If no source changelog message is provided, write a new entry. In general, the entry should contain a short summary of the changes, ideally fitting on a single line,