{"action":"opened","number":97,"pull_request":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/pulls/97","id":30242566,"html_url":"https://github.com/spring-cloud/spring-cloud-config/pull/97","diff_url":"https://github.com/spring-cloud/spring-cloud-config/pull/97.diff","patch_url":"https://github.com/spring-cloud/spring-cloud-config/pull/97.patch","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/97","number":97,"state":"open","locked":false,"title":"Suggestion: add a property to Config Server to allow Git to read sub directories","user":{"login":"michelzanini","id":4479787,"avatar_url":"https://avatars.githubusercontent.com/u/4479787?v=3","gravatar_id":"","url":"https://api.github.com/users/michelzanini","html_url":"https://github.com/michelzanini","followers_url":"https://api.github.com/users/michelzanini/followers","following_url":"https://api.github.com/users/michelzanini/following{/other_user}","gists_url":"https://api.github.com/users/michelzanini/gists{/gist_id}","starred_url":"https://api.github.com/users/michelzanini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michelzanini/subscriptions","organizations_url":"https://api.github.com/users/michelzanini/orgs","repos_url":"https://api.github.com/users/michelzanini/repos","events_url":"https://api.github.com/users/michelzanini/events{/privacy}","received_events_url":"https://api.github.com/users/michelzanini/received_events","type":"User","site_admin":false},"body":"Hi,\r\n\r\nI would like to separate my Git config repo into several sub directories, one for each app so all the files are not mixed together in the root folder.\r\n\r\nI know there is a property I can use: *spring.cloud.config.server.git.searchPaths* where I can provide a list of directories to add when loading the files.\r\n\r\nHowever, I would like this to be more automatic instead of having to add another folder to *spring.cloud.config.server.git.searchPaths* every time I have a new folder for an app configuration added.\r\n\r\nI created a sample pull request just to show the idea with one-level sub directories.\r\nHowever, I think we can make this even better by recursively going into all sub directories even after first level.\r\n\r\nAnyway, just a suggestion, since I think this can be very useful to reduce and organise configuration.\r\n\r\nPS: I am not suggesting to merge this pull request, this is just to present the idea.\r\n\r\nThanks.\r\n\r\n\r\n\r\n","created_at":"2015-03-01T14:20:14Z","updated_at":"2015-03-01T14:20:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/pulls/97/commits","review_comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/pulls/97/comments","review_comment_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/97/comments","statuses_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/statuses/3298e7da2eb1ce74dc95cdd36d66aefc499d4fac","head":{"label":"michelzanini:master","ref":"master","sha":"3298e7da2eb1ce74dc95cdd36d66aefc499d4fac","user":{"login":"michelzanini","id":4479787,"avatar_url":"https://avatars.githubusercontent.com/u/4479787?v=3","gravatar_id":"","url":"https://api.github.com/users/michelzanini","html_url":"https://github.com/michelzanini","followers_url":"https://api.github.com/users/michelzanini/followers","following_url":"https://api.github.com/users/michelzanini/following{/other_user}","gists_url":"https://api.github.com/users/michelzanini/gists{/gist_id}","starred_url":"https://api.github.com/users/michelzanini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michelzanini/subscriptions","organizations_url":"https://api.github.com/users/michelzanini/orgs","repos_url":"https://api.github.com/users/michelzanini/repos","events_url":"https://api.github.com/users/michelzanini/events{/privacy}","received_events_url":"https://api.github.com/users/michelzanini/received_events","type":"User","site_admin":false},"repo":{"id":31497886,"name":"spring-cloud-config","full_name":"michelzanini/spring-cloud-config","owner":{"login":"michelzanini","id":4479787,"avatar_url":"https://avatars.githubusercontent.com/u/4479787?v=3","gravatar_id":"","url":"https://api.github.com/users/michelzanini","html_url":"https://github.com/michelzanini","followers_url":"https://api.github.com/users/michelzanini/followers","following_url":"https://api.github.com/users/michelzanini/following{/other_user}","gists_url":"https://api.github.com/users/michelzanini/gists{/gist_id}","starred_url":"https://api.github.com/users/michelzanini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michelzanini/subscriptions","organizations_url":"https://api.github.com/users/michelzanini/orgs","repos_url":"https://api.github.com/users/michelzanini/repos","events_url":"https://api.github.com/users/michelzanini/events{/privacy}","received_events_url":"https://api.github.com/users/michelzanini/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michelzanini/spring-cloud-config","description":"External configuration (server and client) for Spring Cloud","fork":true,"url":"https://api.github.com/repos/michelzanini/spring-cloud-config","forks_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/forks","keys_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/teams","hooks_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/hooks","issue_events_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/issues/events{/number}","events_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/events","assignees_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/assignees{/user}","branches_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/branches{/branch}","tags_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/tags","blobs_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/git/refs{/sha}","trees_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/statuses/{sha}","languages_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/languages","stargazers_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/stargazers","contributors_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/contributors","subscribers_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/subscribers","subscription_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/subscription","commits_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/commits{/sha}","git_commits_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/git/commits{/sha}","comments_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/comments{/number}","issue_comment_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/issues/comments{/number}","contents_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/contents/{+path}","compare_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/merges","archive_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/downloads","issues_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/issues{/number}","pulls_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/pulls{/number}","milestones_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/milestones{/number}","notifications_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/labels{/name}","releases_url":"https://api.github.com/repos/michelzanini/spring-cloud-config/releases{/id}","created_at":"2015-03-01T13:52:32Z","updated_at":"2015-03-01T14:12:53Z","pushed_at":"2015-03-01T14:12:52Z","git_url":"git://github.com/michelzanini/spring-cloud-config.git","ssh_url":"git@github.com:michelzanini/spring-cloud-config.git","clone_url":"https://github.com/michelzanini/spring-cloud-config.git","svn_url":"https://github.com/michelzanini/spring-cloud-config","homepage":"","size":3554,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"spring-cloud:master","ref":"master","sha":"80cc7f98001f79cd287550b1c6789d56b2d17a77","user":{"login":"spring-cloud","id":7815877,"avatar_url":"https://avatars.githubusercontent.com/u/7815877?v=3","gravatar_id":"","url":"https://api.github.com/users/spring-cloud","html_url":"https://github.com/spring-cloud","followers_url":"https://api.github.com/users/spring-cloud/followers","following_url":"https://api.github.com/users/spring-cloud/following{/other_user}","gists_url":"https://api.github.com/users/spring-cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-cloud/subscriptions","organizations_url":"https://api.github.com/users/spring-cloud/orgs","repos_url":"https://api.github.com/users/spring-cloud/repos","events_url":"https://api.github.com/users/spring-cloud/events{/privacy}","received_events_url":"https://api.github.com/users/spring-cloud/received_events","type":"Organization","site_admin":false},"repo":{"id":20811348,"name":"spring-cloud-config","full_name":"spring-cloud/spring-cloud-config","owner":{"login":"spring-cloud","id":7815877,"avatar_url":"https://avatars.githubusercontent.com/u/7815877?v=3","gravatar_id":"","url":"https://api.github.com/users/spring-cloud","html_url":"https://github.com/spring-cloud","followers_url":"https://api.github.com/users/spring-cloud/followers","following_url":"https://api.github.com/users/spring-cloud/following{/other_user}","gists_url":"https://api.github.com/users/spring-cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-cloud/subscriptions","organizations_url":"https://api.github.com/users/spring-cloud/orgs","repos_url":"https://api.github.com/users/spring-cloud/repos","events_url":"https://api.github.com/users/spring-cloud/events{/privacy}","received_events_url":"https://api.github.com/users/spring-cloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spring-cloud/spring-cloud-config","description":"External configuration (server and client) for Spring Cloud","fork":false,"url":"https://api.github.com/repos/spring-cloud/spring-cloud-config","forks_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/forks","keys_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/teams","hooks_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/hooks","issue_events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/events{/number}","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/events","assignees_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/assignees{/user}","branches_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/branches{/branch}","tags_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/tags","blobs_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/git/refs{/sha}","trees_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/statuses/{sha}","languages_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/languages","stargazers_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/stargazers","contributors_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/contributors","subscribers_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/subscribers","subscription_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/subscription","commits_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/commits{/sha}","git_commits_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/git/commits{/sha}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/comments{/number}","issue_comment_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/comments{/number}","contents_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/contents/{+path}","compare_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/merges","archive_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/downloads","issues_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues{/number}","pulls_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/pulls{/number}","milestones_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/milestones{/number}","notifications_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/labels{/name}","releases_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/releases{/id}","created_at":"2014-06-13T16:59:44Z","updated_at":"2015-02-27T15:52:46Z","pushed_at":"2015-02-27T16:03:24Z","git_url":"git://github.com/spring-cloud/spring-cloud-config.git","ssh_url":"git@github.com:spring-cloud/spring-cloud-config.git","clone_url":"https://github.com/spring-cloud/spring-cloud-config.git","svn_url":"https://github.com/spring-cloud/spring-cloud-config","homepage":"","size":3554,"stargazers_count":28,"watchers_count":28,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":29,"mirror_url":null,"open_issues_count":18,"forks":29,"open_issues":18,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-config/pulls/97"},"html":{"href":"https://github.com/spring-cloud/spring-cloud-config/pull/97"},"issue":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/97"},"comments":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/97/comments"},"review_comments":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-config/pulls/97/comments"},"review_comment":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-config/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-config/pulls/97/commits"},"statuses":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-config/statuses/3298e7da2eb1ce74dc95cdd36d66aefc499d4fac"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":21,"deletions":0,"changed_files":1}}