Skip to content

Commit 7b8d2d9

Browse files
committed
fix(parser-emoji): ensure issues are sorted by numeric value rather than text sorted
1 parent 3858add commit 7b8d2d9

File tree

1 file changed

+2
-2
lines changed
  • src/semantic_release/commit_parser

1 file changed

+2
-2
lines changed

src/semantic_release/commit_parser/emoji.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
ParsedMessageResult,
1919
ParseResult,
2020
)
21-
from semantic_release.commit_parser.util import parse_paragraphs
21+
from semantic_release.commit_parser.util import sort_numerically, parse_paragraphs
2222
from semantic_release.enums import LevelBump
2323
from semantic_release.errors import InvalidParserOptions
2424

@@ -186,7 +186,7 @@ def commit_body_components_separator(
186186
predicate.split(","),
187187
)
188188
)
189-
accumulator["linked_issues"] = sorted(
189+
accumulator["linked_issues"] = sort_numerically(
190190
set(accumulator["linked_issues"]).union(new_issue_refs)
191191
)
192192
# TODO: breaking change v10, removes resolution footers from descriptions

0 commit comments

Comments
 (0)