{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/pulls/2","id":54757308,"html_url":"https://github.com/continuationlabs/hapi-capitalize-modules/pull/2","diff_url":"https://github.com/continuationlabs/hapi-capitalize-modules/pull/2.diff","patch_url":"https://github.com/continuationlabs/hapi-capitalize-modules/pull/2.patch","issue_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/issues/2","number":2,"state":"closed","locked":false,"title":"refactor global scope only logic","user":{"login":"cjihrig","id":2512748,"avatar_url":"https://avatars.githubusercontent.com/u/2512748?v=3","gravatar_id":"","url":"https://api.github.com/users/cjihrig","html_url":"https://github.com/cjihrig","followers_url":"https://api.github.com/users/cjihrig/followers","following_url":"https://api.github.com/users/cjihrig/following{/other_user}","gists_url":"https://api.github.com/users/cjihrig/gists{/gist_id}","starred_url":"https://api.github.com/users/cjihrig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjihrig/subscriptions","organizations_url":"https://api.github.com/users/cjihrig/orgs","repos_url":"https://api.github.com/users/cjihrig/repos","events_url":"https://api.github.com/users/cjihrig/events{/privacy}","received_events_url":"https://api.github.com/users/cjihrig/received_events","type":"User","site_admin":false},"body":"The existing logic that determined if a `require()` was at the top level scope broke between ESLint v1.3.1 and [v1.4.0](http://eslint.org/blog/2015/09/eslint-v1.4.0-released/) (likely https://github.com/eslint/eslint/issues/3700). This PR refactors that logic, using ESLint's [global-require rule](https://github.com/eslint/eslint/blob/master/lib/rules/global-require.js) as a template.","created_at":"2015-12-29T20:57:04Z","updated_at":"2015-12-29T21:00:20Z","closed_at":"2015-12-29T21:00:20Z","merged_at":"2015-12-29T21:00:20Z","merge_commit_sha":"7c76ed216b73fab74b63d9552bd06278332890b6","assignee":{"login":"cjihrig","id":2512748,"avatar_url":"https://avatars.githubusercontent.com/u/2512748?v=3","gravatar_id":"","url":"https://api.github.com/users/cjihrig","html_url":"https://github.com/cjihrig","followers_url":"https://api.github.com/users/cjihrig/followers","following_url":"https://api.github.com/users/cjihrig/following{/other_user}","gists_url":"https://api.github.com/users/cjihrig/gists{/gist_id}","starred_url":"https://api.github.com/users/cjihrig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjihrig/subscriptions","organizations_url":"https://api.github.com/users/cjihrig/orgs","repos_url":"https://api.github.com/users/cjihrig/repos","events_url":"https://api.github.com/users/cjihrig/events{/privacy}","received_events_url":"https://api.github.com/users/cjihrig/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/milestones/2","html_url":"https://github.com/continuationlabs/hapi-capitalize-modules/milestones/v1.1.4","labels_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/milestones/2/labels","id":1237256,"number":2,"title":"v1.1.4","description":"","creator":{"login":"cjihrig","id":2512748,"avatar_url":"https://avatars.githubusercontent.com/u/2512748?v=3","gravatar_id":"","url":"https://api.github.com/users/cjihrig","html_url":"https://github.com/cjihrig","followers_url":"https://api.github.com/users/cjihrig/followers","following_url":"https://api.github.com/users/cjihrig/following{/other_user}","gists_url":"https://api.github.com/users/cjihrig/gists{/gist_id}","starred_url":"https://api.github.com/users/cjihrig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjihrig/subscriptions","organizations_url":"https://api.github.com/users/cjihrig/orgs","repos_url":"https://api.github.com/users/cjihrig/repos","events_url":"https://api.github.com/users/cjihrig/events{/privacy}","received_events_url":"https://api.github.com/users/cjihrig/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":1,"state":"open","created_at":"2015-08-02T23:17:13Z","updated_at":"2015-12-29T21:00:20Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/pulls/2/commits","review_comments_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/pulls/2/comments","review_comment_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/pulls/comments{/number}","comments_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/issues/2/comments","statuses_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/statuses/5b2ed1fdbbbd3d6f2c4ce176546d27dfaa15def2","head":{"label":"cjihrig:update","ref":"update","sha":"5b2ed1fdbbbd3d6f2c4ce176546d27dfaa15def2","user":{"login":"cjihrig","id":2512748,"avatar_url":"https://avatars.githubusercontent.com/u/2512748?v=3","gravatar_id":"","url":"https://api.github.com/users/cjihrig","html_url":"https://github.com/cjihrig","followers_url":"https://api.github.com/users/cjihrig/followers","following_url":"https://api.github.com/users/cjihrig/following{/other_user}","gists_url":"https://api.github.com/users/cjihrig/gists{/gist_id}","starred_url":"https://api.github.com/users/cjihrig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjihrig/subscriptions","organizations_url":"https://api.github.com/users/cjihrig/orgs","repos_url":"https://api.github.com/users/cjihrig/repos","events_url":"https://api.github.com/users/cjihrig/events{/privacy}","received_events_url":"https://api.github.com/users/cjihrig/received_events","type":"User","site_admin":false},"repo":{"id":40095873,"name":"hapi-capitalize-modules","full_name":"cjihrig/hapi-capitalize-modules","owner":{"login":"cjihrig","id":2512748,"avatar_url":"https://avatars.githubusercontent.com/u/2512748?v=3","gravatar_id":"","url":"https://api.github.com/users/cjihrig","html_url":"https://github.com/cjihrig","followers_url":"https://api.github.com/users/cjihrig/followers","following_url":"https://api.github.com/users/cjihrig/following{/other_user}","gists_url":"https://api.github.com/users/cjihrig/gists{/gist_id}","starred_url":"https://api.github.com/users/cjihrig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjihrig/subscriptions","organizations_url":"https://api.github.com/users/cjihrig/orgs","repos_url":"https://api.github.com/users/cjihrig/repos","events_url":"https://api.github.com/users/cjihrig/events{/privacy}","received_events_url":"https://api.github.com/users/cjihrig/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cjihrig/hapi-capitalize-modules","description":"ESLint rule to enforce the capitalization of imported module variables","fork":true,"url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules","forks_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/forks","keys_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/teams","hooks_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/hooks","issue_events_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/issues/events{/number}","events_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/events","assignees_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/assignees{/user}","branches_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/branches{/branch}","tags_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/tags","blobs_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/git/refs{/sha}","trees_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/statuses/{sha}","languages_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/languages","stargazers_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/stargazers","contributors_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/contributors","subscribers_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/subscribers","subscription_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/subscription","commits_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/commits{/sha}","git_commits_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/git/commits{/sha}","comments_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/comments{/number}","issue_comment_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/issues/comments{/number}","contents_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/contents/{+path}","compare_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/merges","archive_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/downloads","issues_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/issues{/number}","pulls_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/pulls{/number}","milestones_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/milestones{/number}","notifications_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/labels{/name}","releases_url":"https://api.github.com/repos/cjihrig/hapi-capitalize-modules/releases{/id}","created_at":"2015-08-02T23:15:48Z","updated_at":"2015-08-02T23:15:49Z","pushed_at":"2015-12-29T20:53:20Z","git_url":"git://github.com/cjihrig/hapi-capitalize-modules.git","ssh_url":"git@github.com:cjihrig/hapi-capitalize-modules.git","clone_url":"https://github.com/cjihrig/hapi-capitalize-modules.git","svn_url":"https://github.com/cjihrig/hapi-capitalize-modules","homepage":null,"size":8,"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":"continuationlabs:master","ref":"master","sha":"e972b77e5aff121facbce2626d852fc76ebfb536","user":{"login":"continuationlabs","id":12009519,"avatar_url":"https://avatars.githubusercontent.com/u/12009519?v=3","gravatar_id":"","url":"https://api.github.com/users/continuationlabs","html_url":"https://github.com/continuationlabs","followers_url":"https://api.github.com/users/continuationlabs/followers","following_url":"https://api.github.com/users/continuationlabs/following{/other_user}","gists_url":"https://api.github.com/users/continuationlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/continuationlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/continuationlabs/subscriptions","organizations_url":"https://api.github.com/users/continuationlabs/orgs","repos_url":"https://api.github.com/users/continuationlabs/repos","events_url":"https://api.github.com/users/continuationlabs/events{/privacy}","received_events_url":"https://api.github.com/users/continuationlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":37081605,"name":"hapi-capitalize-modules","full_name":"continuationlabs/hapi-capitalize-modules","owner":{"login":"continuationlabs","id":12009519,"avatar_url":"https://avatars.githubusercontent.com/u/12009519?v=3","gravatar_id":"","url":"https://api.github.com/users/continuationlabs","html_url":"https://github.com/continuationlabs","followers_url":"https://api.github.com/users/continuationlabs/followers","following_url":"https://api.github.com/users/continuationlabs/following{/other_user}","gists_url":"https://api.github.com/users/continuationlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/continuationlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/continuationlabs/subscriptions","organizations_url":"https://api.github.com/users/continuationlabs/orgs","repos_url":"https://api.github.com/users/continuationlabs/repos","events_url":"https://api.github.com/users/continuationlabs/events{/privacy}","received_events_url":"https://api.github.com/users/continuationlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/continuationlabs/hapi-capitalize-modules","description":"ESLint rule to enforce the capitalization of imported module variables","fork":false,"url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules","forks_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/forks","keys_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/keys{/key_id}","collaborators_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/teams","hooks_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/hooks","issue_events_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/issues/events{/number}","events_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/events","assignees_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/assignees{/user}","branches_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/branches{/branch}","tags_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/tags","blobs_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/git/refs{/sha}","trees_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/git/trees{/sha}","statuses_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/statuses/{sha}","languages_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/languages","stargazers_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/stargazers","contributors_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/contributors","subscribers_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/subscribers","subscription_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/subscription","commits_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/commits{/sha}","git_commits_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/git/commits{/sha}","comments_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/comments{/number}","issue_comment_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/issues/comments{/number}","contents_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/contents/{+path}","compare_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/compare/{base}...{head}","merges_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/merges","archive_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/downloads","issues_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/issues{/number}","pulls_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/pulls{/number}","milestones_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/milestones{/number}","notifications_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/labels{/name}","releases_url":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/releases{/id}","created_at":"2015-06-08T17:24:20Z","updated_at":"2015-10-29T14:22:40Z","pushed_at":"2015-12-29T21:00:20Z","git_url":"git://github.com/continuationlabs/hapi-capitalize-modules.git","ssh_url":"git@github.com:continuationlabs/hapi-capitalize-modules.git","clone_url":"https://github.com/continuationlabs/hapi-capitalize-modules.git","svn_url":"https://github.com/continuationlabs/hapi-capitalize-modules","homepage":null,"size":167,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/pulls/2"},"html":{"href":"https://github.com/continuationlabs/hapi-capitalize-modules/pull/2"},"issue":{"href":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/issues/2"},"comments":{"href":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/continuationlabs/hapi-capitalize-modules/statuses/5b2ed1fdbbbd3d6f2c4ce176546d27dfaa15def2"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"cjihrig","id":2512748,"avatar_url":"https://avatars.githubusercontent.com/u/2512748?v=3","gravatar_id":"","url":"https://api.github.com/users/cjihrig","html_url":"https://github.com/cjihrig","followers_url":"https://api.github.com/users/cjihrig/followers","following_url":"https://api.github.com/users/cjihrig/following{/other_user}","gists_url":"https://api.github.com/users/cjihrig/gists{/gist_id}","starred_url":"https://api.github.com/users/cjihrig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjihrig/subscriptions","organizations_url":"https://api.github.com/users/cjihrig/orgs","repos_url":"https://api.github.com/users/cjihrig/repos","events_url":"https://api.github.com/users/cjihrig/events{/privacy}","received_events_url":"https://api.github.com/users/cjihrig/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":39,"deletions":2,"changed_files":2}}