File tree Expand file tree Collapse file tree
cocode/pipelex_libraries/pipelines/swe_diff Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ steps = [
2727 { pipe = " draft_changelog_from_git_diff" , result = " draft_changelog" },
2828 { pipe = " polish_changelog" , result = " structured_changelog" },
2929 { pipe = " format_changelog_as_markdown" , result = " markdown_changelog" },
30+ { pipe = " finalize_changelog" },
3031]
3132
3233[pipe .draft_changelog_from_git_diff]
@@ -138,3 +139,23 @@ jinja2 = """
138139{% endif %}
139140" " "
140141
142+ [pipe .finalize_changelog]
143+ type = " PipeLLM"
144+ definition = " Polish and improve the changelog"
145+ inputs = { structured_changelog = " StructuredChangelog" }
146+ output = " MarkdownChangelog"
147+ llm = " llm_for_swe"
148+ system_prompt = " " "
149+ You are an expert technical writer. Your task is to polish and improve a changelog to make it more clear, concise, and well-structured.
150+ " " "
151+ prompt_template = " " "
152+ Review and polish the following changelog:
153+
154+ @structured_changelog
155+
156+ Remove redundancy: I don't want to see echos between " Changed" and " Fixed" or " Added" .
157+ Remove trivial changes.
158+ Keep the markdown formatting and the standard structure of the changelog.
159+ It's OK to remove some sections if they are empty after removing redundancy and trivial changes.
160+ " " "
161+
You can’t perform that action at this time.
0 commit comments