Skip to content

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 !

Starosdev added a commit to Starosdev/scrutiny that referenced this pull request Nov 30, 2025
…nalogJ#750)

When notify.urls is configured as a JSON array in the config file,
Viper's GetStringSlice may not parse it correctly. This fix attempts
to unmarshal the raw string as JSON first, falling back to the
original behavior if that fails.

Origin: AnalogJ#750
Original author: @remi-espie
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