Describe the bug - Given config-server is configured with the spring.cloud.config.server.git.searchPaths to spring-config - And cloud-bus is also configured on the config-server - And gitlab webhook is setup to notify the git repository changes on /monitor path of the config-server - When I change an unrelated file in the git repository (e.g. /docker-compose/docker-compose.yml) - Then config-server dispatches a RefreshRemoteApplicationEvent for the destinations: docker-compose:*:** and docker-compose:*:** [ISSUE]

Expected Result As the git repository file updated was out of the configured searchPaths, No RefreshRemoteApplicationEvent` should be dispatched.

Suggested Fix PropertyPathEndpoint.notifyByPath should be updated. It should filter out the paths retrieved from the PropertyPathNotifiationExtractor which aren't matching the configured searchPaths.

Comment From: spencergibb

Thanks for the suggested fix, but I doubt we'd be able to match search paths. Maybe there could be a list of regexes to ignore.