welpo / git-sumi

The non-opinionated Rust-based commit message linter.
https://sumi.rs/
Apache License 2.0
10 stars 0 forks source link

✨ feat(config): override config bools with env vars #9

Closed welpo closed 4 months ago

welpo commented 4 months ago

Summary

This PR introduces the ability to override boolean configuration flags through environment variables. Example, with sumi.toml containing quiet = true, you can do:

GIT_SUMI_QUIET=false git sumi '👷 misc(CI): rename git-sumi job'

And quiet will be correctly set to false:

💬 Input: "👷 misc(CI): rename git-sumi job"
✅ All 10 checks passed.

How has this been tested?


Type of change


Checklist