Add commit style configuration via environment variable #13

Closed
opened 2025-07-06 17:16:52 +00:00 by glenux · 1 comment
Owner

This pull request introduces the ability to set a default commit style for llm commit commands using the LLM_COMMIT_STYLE environment variable.

Users can now enforce either a "semantic" or "conventional" commit style by default. Furthermore, this setting can be overridden via the command-line flags --semantic or --conventional, ensuring flexibility.

In addition, tests have been added to verify the functionality of the environment variable setting and its precedence over command-line arguments.

Documentation in the README.md has been updated accordingly to reflect these new options.

This pull request introduces the ability to set a default commit style for `llm commit` commands using the `LLM_COMMIT_STYLE` environment variable. Users can now enforce either a "semantic" or "conventional" commit style by default. Furthermore, this setting can be overridden via the command-line flags `--semantic` or `--conventional`, ensuring flexibility. In addition, tests have been added to verify the functionality of the environment variable setting and its precedence over command-line arguments. Documentation in the `README.md` has been updated accordingly to reflect these new options.
Author
Owner

Fixed by 42f65aa3a1

Fixed by 42f65aa3a11429106c565dbdbad5092ed4caf39b
glenux 2025-07-06 17:17:33 +00:00
glenux added this to the Default project 2025-07-06 17:17:46 +00:00
glenux self-assigned this 2025-07-06 17:17:49 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: glenux/llm-commit-gen#13
No description provided.