Skip to content

Commit 45df4e0

Browse files
committed
🐛 Fix GITIRIS_GITMOJI env var handling in Docker entrypoint
Change gitmoji configuration to use boolean flag syntax instead of passing the raw environment variable value. The entrypoint now correctly maps "true" to --gitmoji and "false" to --no-gitmoji, matching the CLI's expected flag-based interface.
1 parent 05d26bc commit 45df4e0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docker/docker-entrypoint.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,11 @@ if [ -n "$GITIRIS_PRESET" ]; then
5656
CONFIG_PARAMS="$CONFIG_PARAMS --preset $GITIRIS_PRESET"
5757
fi
5858

59-
# Gitmoji setting
60-
if [ -n "$GITIRIS_GITMOJI" ]; then
61-
CONFIG_PARAMS="$CONFIG_PARAMS --gitmoji $GITIRIS_GITMOJI"
59+
# Gitmoji setting (boolean flag, not value)
60+
if [ "$GITIRIS_GITMOJI" = "true" ]; then
61+
CONFIG_PARAMS="$CONFIG_PARAMS --gitmoji"
62+
elif [ "$GITIRIS_GITMOJI" = "false" ]; then
63+
CONFIG_PARAMS="$CONFIG_PARAMS --no-gitmoji"
6264
fi
6365

6466
# Additional parameters (comma-separated key=value pairs)

0 commit comments

Comments
 (0)