diff --git a/src/semantic_release/commit_parser/emoji.py b/src/semantic_release/commit_parser/emoji.py index 801160208..e2fb5ae30 100644 --- a/src/semantic_release/commit_parser/emoji.py +++ b/src/semantic_release/commit_parser/emoji.py @@ -65,7 +65,12 @@ class EmojiParserOptions(ParserOptions): ) """Commit-type prefixes that should result in a patch release bump.""" - other_allowed_tags: Tuple[str, ...] = (":memo:", ":checkmark:") + other_allowed_tags: Tuple[str, ...] = ( + ":checkmark:", + ":construction_worker:", + ":memo:", + ":recycle:", + ) """Commit-type prefixes that are allowed but do not result in a version bump.""" allowed_tags: Tuple[str, ...] = ( diff --git a/tests/const.py b/tests/const.py index 69a7ca778..8ff979f2f 100644 --- a/tests/const.py +++ b/tests/const.py @@ -93,7 +93,7 @@ class RepoActionStep(str, Enum): ) EMOJI_COMMITS_MINOR = ( *EMOJI_COMMITS_PATCH, - ":sparkles::pencil: docs for something special\n", + ":sparkles::memo: docs for something special\n", # Emoji in description should not be used to evaluate change type ":sparkles: last minute rush order\n\nGood thing we're 10x developers :boom:\n", ) diff --git a/tests/unit/semantic_release/commit_parser/test_emoji.py b/tests/unit/semantic_release/commit_parser/test_emoji.py index c477579ec..4e2dcd597 100644 --- a/tests/unit/semantic_release/commit_parser/test_emoji.py +++ b/tests/unit/semantic_release/commit_parser/test_emoji.py @@ -42,20 +42,28 @@ [":bug: Fixing a bug", "The bug is finally gone!"], [], ), - # No release + # No release with specified emoji ( - ":pencil: Documentation changes", + ":memo: Documentation changes", + LevelBump.NO_RELEASE, + ":memo:", + [":memo: Documentation changes"], + [], + ), + # No release with random emoji + ( + ":construction: Work in progress", LevelBump.NO_RELEASE, "Other", - [":pencil: Documentation changes"], + [":construction: Work in progress"], [], ), # Multiple emojis ( - ":sparkles::pencil: Add a feature and document it", + ":sparkles::memo: Add a feature and document it", LevelBump.MINOR, ":sparkles:", - [":sparkles::pencil: Add a feature and document it"], + [":sparkles::memo: Add a feature and document it"], [], ), # Emoji in description