Closed clairton closed 4 weeks ago
The changes in this pull request involve modifications to several files, primarily focusing on configuration management and testing for a webhook system. The .gitignore
file has been updated to include the ./.env
file, ensuring sensitive environment variables are not tracked. The test suite for the getConfigRedis
function has been enhanced with additional tests and imports. The default behavior of the WEBHOOK_SEND_GROUP_MESSAGES
constant has been adjusted to true
when the environment variable is undefined. Lastly, the getConfigRedis
function's implementation has been streamlined to improve how webhook configurations are handled.
File | Change Summary |
---|---|
.gitignore | Added newline; included ./.env to be ignored by Git. |
tests/services/config_redis.ts | Updated tests for getConfigRedis ; added import for WEBHOOK_HEADER ; introduced new test case. |
src/defaults.ts | Changed default value of WEBHOOK_SEND_GROUP_MESSAGES from false to true when undefined. |
src/services/config_redis.ts | Modified getConfigRedis to use forEach for iteration; added handling for webhooks key. |
In the burrow where changes abound,
A new.gitignore
has been found.
Webhooks now dance with a default cheer,
Group messages sent, spreading joy far and near.
Tests are now stronger, with coverage so bright,
Hopping through code, everything feels right! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
thanks @rs-blip
Summary by CodeRabbit
New Features
Bug Fixes
Chores
.gitignore
to include the.env
file, enhancing security by preventing sensitive information from being tracked.