{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/Aloompa/questy/pulls/1","id":86443841,"html_url":"https://github.com/Aloompa/questy/pull/1","diff_url":"https://github.com/Aloompa/questy/pull/1.diff","patch_url":"https://github.com/Aloompa/questy/pull/1.patch","issue_url":"https://api.github.com/repos/Aloompa/questy/issues/1","number":1,"state":"open","locked":false,"title":"More robust directory checking","user":{"login":"yufengwng","id":5713833,"avatar_url":"https://avatars.githubusercontent.com/u/5713833?v=3","gravatar_id":"","url":"https://api.github.com/users/yufengwng","html_url":"https://github.com/yufengwng","followers_url":"https://api.github.com/users/yufengwng/followers","following_url":"https://api.github.com/users/yufengwng/following{/other_user}","gists_url":"https://api.github.com/users/yufengwng/gists{/gist_id}","starred_url":"https://api.github.com/users/yufengwng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yufengwng/subscriptions","organizations_url":"https://api.github.com/users/yufengwng/orgs","repos_url":"https://api.github.com/users/yufengwng/repos","events_url":"https://api.github.com/users/yufengwng/events{/privacy}","received_events_url":"https://api.github.com/users/yufengwng/received_events","type":"User","site_admin":false},"body":"For any given root path, the search tries to traverse child items without properly checking that they are indeed directories. When we have files without a file extension (like `LICENSE` or `README`), it will throw an error and tests won't be `require`d.\r\n\r\nInstead of checking for a file extension, this now reads the stats to determine if it's a directory or not. Added some dummy test files as well, where one does not have a file extension and another is named the same as the folder pattern we're searching for.","created_at":"2016-09-23T02:06:19Z","updated_at":"2016-09-23T02:06:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Aloompa/questy/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Aloompa/questy/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Aloompa/questy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Aloompa/questy/issues/1/comments","statuses_url":"https://api.github.com/repos/Aloompa/questy/statuses/dc5da68ec180881db840f189eb7d5735c6850eb6","head":{"label":"yufengwng:dir-check","ref":"dir-check","sha":"dc5da68ec180881db840f189eb7d5735c6850eb6","user":{"login":"yufengwng","id":5713833,"avatar_url":"https://avatars.githubusercontent.com/u/5713833?v=3","gravatar_id":"","url":"https://api.github.com/users/yufengwng","html_url":"https://github.com/yufengwng","followers_url":"https://api.github.com/users/yufengwng/followers","following_url":"https://api.github.com/users/yufengwng/following{/other_user}","gists_url":"https://api.github.com/users/yufengwng/gists{/gist_id}","starred_url":"https://api.github.com/users/yufengwng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yufengwng/subscriptions","organizations_url":"https://api.github.com/users/yufengwng/orgs","repos_url":"https://api.github.com/users/yufengwng/repos","events_url":"https://api.github.com/users/yufengwng/events{/privacy}","received_events_url":"https://api.github.com/users/yufengwng/received_events","type":"User","site_admin":false},"repo":{"id":68975477,"name":"questy","full_name":"yufengwng/questy","owner":{"login":"yufengwng","id":5713833,"avatar_url":"https://avatars.githubusercontent.com/u/5713833?v=3","gravatar_id":"","url":"https://api.github.com/users/yufengwng","html_url":"https://github.com/yufengwng","followers_url":"https://api.github.com/users/yufengwng/followers","following_url":"https://api.github.com/users/yufengwng/following{/other_user}","gists_url":"https://api.github.com/users/yufengwng/gists{/gist_id}","starred_url":"https://api.github.com/users/yufengwng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yufengwng/subscriptions","organizations_url":"https://api.github.com/users/yufengwng/orgs","repos_url":"https://api.github.com/users/yufengwng/repos","events_url":"https://api.github.com/users/yufengwng/events{/privacy}","received_events_url":"https://api.github.com/users/yufengwng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yufengwng/questy","description":"Require all of the files and folders that match a certain criteria. This is handy for tasks such as running Mocha tests from unusual places.","fork":true,"url":"https://api.github.com/repos/yufengwng/questy","forks_url":"https://api.github.com/repos/yufengwng/questy/forks","keys_url":"https://api.github.com/repos/yufengwng/questy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yufengwng/questy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yufengwng/questy/teams","hooks_url":"https://api.github.com/repos/yufengwng/questy/hooks","issue_events_url":"https://api.github.com/repos/yufengwng/questy/issues/events{/number}","events_url":"https://api.github.com/repos/yufengwng/questy/events","assignees_url":"https://api.github.com/repos/yufengwng/questy/assignees{/user}","branches_url":"https://api.github.com/repos/yufengwng/questy/branches{/branch}","tags_url":"https://api.github.com/repos/yufengwng/questy/tags","blobs_url":"https://api.github.com/repos/yufengwng/questy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yufengwng/questy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yufengwng/questy/git/refs{/sha}","trees_url":"https://api.github.com/repos/yufengwng/questy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yufengwng/questy/statuses/{sha}","languages_url":"https://api.github.com/repos/yufengwng/questy/languages","stargazers_url":"https://api.github.com/repos/yufengwng/questy/stargazers","contributors_url":"https://api.github.com/repos/yufengwng/questy/contributors","subscribers_url":"https://api.github.com/repos/yufengwng/questy/subscribers","subscription_url":"https://api.github.com/repos/yufengwng/questy/subscription","commits_url":"https://api.github.com/repos/yufengwng/questy/commits{/sha}","git_commits_url":"https://api.github.com/repos/yufengwng/questy/git/commits{/sha}","comments_url":"https://api.github.com/repos/yufengwng/questy/comments{/number}","issue_comment_url":"https://api.github.com/repos/yufengwng/questy/issues/comments{/number}","contents_url":"https://api.github.com/repos/yufengwng/questy/contents/{+path}","compare_url":"https://api.github.com/repos/yufengwng/questy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yufengwng/questy/merges","archive_url":"https://api.github.com/repos/yufengwng/questy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yufengwng/questy/downloads","issues_url":"https://api.github.com/repos/yufengwng/questy/issues{/number}","pulls_url":"https://api.github.com/repos/yufengwng/questy/pulls{/number}","milestones_url":"https://api.github.com/repos/yufengwng/questy/milestones{/number}","notifications_url":"https://api.github.com/repos/yufengwng/questy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yufengwng/questy/labels{/name}","releases_url":"https://api.github.com/repos/yufengwng/questy/releases{/id}","deployments_url":"https://api.github.com/repos/yufengwng/questy/deployments","created_at":"2016-09-23T01:07:50Z","updated_at":"2016-09-23T01:07:51Z","pushed_at":"2016-09-23T01:54:09Z","git_url":"git://github.com/yufengwng/questy.git","ssh_url":"git@github.com:yufengwng/questy.git","clone_url":"https://github.com/yufengwng/questy.git","svn_url":"https://github.com/yufengwng/questy","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Aloompa:master","ref":"master","sha":"db2cb197baad2d0946ee2ff971c33978fa08b137","user":{"login":"Aloompa","id":3011322,"avatar_url":"https://avatars.githubusercontent.com/u/3011322?v=3","gravatar_id":"","url":"https://api.github.com/users/Aloompa","html_url":"https://github.com/Aloompa","followers_url":"https://api.github.com/users/Aloompa/followers","following_url":"https://api.github.com/users/Aloompa/following{/other_user}","gists_url":"https://api.github.com/users/Aloompa/gists{/gist_id}","starred_url":"https://api.github.com/users/Aloompa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aloompa/subscriptions","organizations_url":"https://api.github.com/users/Aloompa/orgs","repos_url":"https://api.github.com/users/Aloompa/repos","events_url":"https://api.github.com/users/Aloompa/events{/privacy}","received_events_url":"https://api.github.com/users/Aloompa/received_events","type":"Organization","site_admin":false},"repo":{"id":45753229,"name":"questy","full_name":"Aloompa/questy","owner":{"login":"Aloompa","id":3011322,"avatar_url":"https://avatars.githubusercontent.com/u/3011322?v=3","gravatar_id":"","url":"https://api.github.com/users/Aloompa","html_url":"https://github.com/Aloompa","followers_url":"https://api.github.com/users/Aloompa/followers","following_url":"https://api.github.com/users/Aloompa/following{/other_user}","gists_url":"https://api.github.com/users/Aloompa/gists{/gist_id}","starred_url":"https://api.github.com/users/Aloompa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aloompa/subscriptions","organizations_url":"https://api.github.com/users/Aloompa/orgs","repos_url":"https://api.github.com/users/Aloompa/repos","events_url":"https://api.github.com/users/Aloompa/events{/privacy}","received_events_url":"https://api.github.com/users/Aloompa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Aloompa/questy","description":"Require all of the files and folders that match a certain criteria. This is handy for tasks such as running Mocha tests from unusual places.","fork":false,"url":"https://api.github.com/repos/Aloompa/questy","forks_url":"https://api.github.com/repos/Aloompa/questy/forks","keys_url":"https://api.github.com/repos/Aloompa/questy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Aloompa/questy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Aloompa/questy/teams","hooks_url":"https://api.github.com/repos/Aloompa/questy/hooks","issue_events_url":"https://api.github.com/repos/Aloompa/questy/issues/events{/number}","events_url":"https://api.github.com/repos/Aloompa/questy/events","assignees_url":"https://api.github.com/repos/Aloompa/questy/assignees{/user}","branches_url":"https://api.github.com/repos/Aloompa/questy/branches{/branch}","tags_url":"https://api.github.com/repos/Aloompa/questy/tags","blobs_url":"https://api.github.com/repos/Aloompa/questy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Aloompa/questy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Aloompa/questy/git/refs{/sha}","trees_url":"https://api.github.com/repos/Aloompa/questy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Aloompa/questy/statuses/{sha}","languages_url":"https://api.github.com/repos/Aloompa/questy/languages","stargazers_url":"https://api.github.com/repos/Aloompa/questy/stargazers","contributors_url":"https://api.github.com/repos/Aloompa/questy/contributors","subscribers_url":"https://api.github.com/repos/Aloompa/questy/subscribers","subscription_url":"https://api.github.com/repos/Aloompa/questy/subscription","commits_url":"https://api.github.com/repos/Aloompa/questy/commits{/sha}","git_commits_url":"https://api.github.com/repos/Aloompa/questy/git/commits{/sha}","comments_url":"https://api.github.com/repos/Aloompa/questy/comments{/number}","issue_comment_url":"https://api.github.com/repos/Aloompa/questy/issues/comments{/number}","contents_url":"https://api.github.com/repos/Aloompa/questy/contents/{+path}","compare_url":"https://api.github.com/repos/Aloompa/questy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Aloompa/questy/merges","archive_url":"https://api.github.com/repos/Aloompa/questy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Aloompa/questy/downloads","issues_url":"https://api.github.com/repos/Aloompa/questy/issues{/number}","pulls_url":"https://api.github.com/repos/Aloompa/questy/pulls{/number}","milestones_url":"https://api.github.com/repos/Aloompa/questy/milestones{/number}","notifications_url":"https://api.github.com/repos/Aloompa/questy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Aloompa/questy/labels{/name}","releases_url":"https://api.github.com/repos/Aloompa/questy/releases{/id}","deployments_url":"https://api.github.com/repos/Aloompa/questy/deployments","created_at":"2015-11-07T20:25:56Z","updated_at":"2016-06-03T04:07:06Z","pushed_at":"2015-11-09T12:01:52Z","git_url":"git://github.com/Aloompa/questy.git","ssh_url":"git@github.com:Aloompa/questy.git","clone_url":"https://github.com/Aloompa/questy.git","svn_url":"https://github.com/Aloompa/questy","homepage":null,"size":0,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Aloompa/questy/pulls/1"},"html":{"href":"https://github.com/Aloompa/questy/pull/1"},"issue":{"href":"https://api.github.com/repos/Aloompa/questy/issues/1"},"comments":{"href":"https://api.github.com/repos/Aloompa/questy/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Aloompa/questy/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Aloompa/questy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Aloompa/questy/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Aloompa/questy/statuses/dc5da68ec180881db840f189eb7d5735c6850eb6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":21,"deletions":3,"changed_files":6}}
{"actor":{"display_login":"yufengwng"}}