Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: try to unmarshal notify.url and use it when needed #750

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

remi-espie
Copy link

This PR fix the first path segment in URL cannot contain colon when passing notifier to scrutiny through env variables.

Per the doc, environment-given notifier URLs should be contained in a json array. However, this feature does not work at the time.

To fix this issue, I added a json.unmarshal on notify.urls config string. The configuration string is only replaced if the unmarshal has no error, ensuring backward compatibility.

Note: I only tested this feature with the docker image, and not the binary. Ensuring the binary work before merging would be best.

This PR closes #745.

Also, thanks for the good work !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] first path segment in URL cannot contain colon with discord notifier
1 participant