{"action":"opened","number":197,"pull_request":{"url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/pulls/197","id":222164343,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyMTY0MzQz","html_url":"https://github.com/awslabs/cfncluster-cookbook/pull/197","diff_url":"https://github.com/awslabs/cfncluster-cookbook/pull/197.diff","patch_url":"https://github.com/awslabs/cfncluster-cookbook/pull/197.patch","issue_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/issues/197","number":197,"state":"open","locked":false,"title":"Fix RuboCop warnings","user":{"login":"lukeseawalker","id":18627272,"node_id":"MDQ6VXNlcjE4NjI3Mjcy","avatar_url":"https://avatars3.githubusercontent.com/u/18627272?v=4","gravatar_id":"","url":"https://api.github.com/users/lukeseawalker","html_url":"https://github.com/lukeseawalker","followers_url":"https://api.github.com/users/lukeseawalker/followers","following_url":"https://api.github.com/users/lukeseawalker/following{/other_user}","gists_url":"https://api.github.com/users/lukeseawalker/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeseawalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeseawalker/subscriptions","organizations_url":"https://api.github.com/users/lukeseawalker/orgs","repos_url":"https://api.github.com/users/lukeseawalker/repos","events_url":"https://api.github.com/users/lukeseawalker/events{/privacy}","received_events_url":"https://api.github.com/users/lukeseawalker/received_events","type":"User","site_admin":false},"body":"- Use a guard clause instead of wrapping the code inside a conditional\r\n  expression.\r\n- Favor modifier unless usage when having a single-line body.\r\n\r\nSigned-off-by: Luca Carrogu <carrogu@amazon.com>\r\n\r\nBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.\r\n","created_at":"2018-10-11T14:39:56Z","updated_at":"2018-10-11T14:39:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/pulls/197/commits","review_comments_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/pulls/197/comments","review_comment_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/issues/197/comments","statuses_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/statuses/d96f06754a81068fc4afba0c5b5faab390a60aa4","head":{"label":"lukeseawalker:wip/fixRuboCopWarning","ref":"wip/fixRuboCopWarning","sha":"d96f06754a81068fc4afba0c5b5faab390a60aa4","user":{"login":"lukeseawalker","id":18627272,"node_id":"MDQ6VXNlcjE4NjI3Mjcy","avatar_url":"https://avatars3.githubusercontent.com/u/18627272?v=4","gravatar_id":"","url":"https://api.github.com/users/lukeseawalker","html_url":"https://github.com/lukeseawalker","followers_url":"https://api.github.com/users/lukeseawalker/followers","following_url":"https://api.github.com/users/lukeseawalker/following{/other_user}","gists_url":"https://api.github.com/users/lukeseawalker/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeseawalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeseawalker/subscriptions","organizations_url":"https://api.github.com/users/lukeseawalker/orgs","repos_url":"https://api.github.com/users/lukeseawalker/repos","events_url":"https://api.github.com/users/lukeseawalker/events{/privacy}","received_events_url":"https://api.github.com/users/lukeseawalker/received_events","type":"User","site_admin":false},"repo":{"id":131274436,"node_id":"MDEwOlJlcG9zaXRvcnkxMzEyNzQ0MzY=","name":"cfncluster-cookbook","full_name":"lukeseawalker/cfncluster-cookbook","private":false,"owner":{"login":"lukeseawalker","id":18627272,"node_id":"MDQ6VXNlcjE4NjI3Mjcy","avatar_url":"https://avatars3.githubusercontent.com/u/18627272?v=4","gravatar_id":"","url":"https://api.github.com/users/lukeseawalker","html_url":"https://github.com/lukeseawalker","followers_url":"https://api.github.com/users/lukeseawalker/followers","following_url":"https://api.github.com/users/lukeseawalker/following{/other_user}","gists_url":"https://api.github.com/users/lukeseawalker/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeseawalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeseawalker/subscriptions","organizations_url":"https://api.github.com/users/lukeseawalker/orgs","repos_url":"https://api.github.com/users/lukeseawalker/repos","events_url":"https://api.github.com/users/lukeseawalker/events{/privacy}","received_events_url":"https://api.github.com/users/lukeseawalker/received_events","type":"User","site_admin":false},"html_url":"https://github.com/lukeseawalker/cfncluster-cookbook","description":"The Chef cookbook used to build and bootstrap CfnCluster","fork":true,"url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook","forks_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/forks","keys_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/teams","hooks_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/hooks","issue_events_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/issues/events{/number}","events_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/events","assignees_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/assignees{/user}","branches_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/branches{/branch}","tags_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/tags","blobs_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/statuses/{sha}","languages_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/languages","stargazers_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/stargazers","contributors_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/contributors","subscribers_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/subscribers","subscription_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/subscription","commits_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/contents/{+path}","compare_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/merges","archive_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/downloads","issues_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/issues{/number}","pulls_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/pulls{/number}","milestones_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/milestones{/number}","notifications_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/labels{/name}","releases_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/releases{/id}","deployments_url":"https://api.github.com/repos/lukeseawalker/cfncluster-cookbook/deployments","created_at":"2018-04-27T09:18:13Z","updated_at":"2018-10-10T09:14:36Z","pushed_at":"2018-10-11T14:39:35Z","git_url":"git://github.com/lukeseawalker/cfncluster-cookbook.git","ssh_url":"git@github.com:lukeseawalker/cfncluster-cookbook.git","clone_url":"https://github.com/lukeseawalker/cfncluster-cookbook.git","svn_url":"https://github.com/lukeseawalker/cfncluster-cookbook","homepage":"http://aws.amazon.com/hpc/cfncluster","size":867,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"awslabs:develop","ref":"develop","sha":"0495ba11d73ce691e5db125fa00e3c3da9a4d16a","user":{"login":"awslabs","id":3299148,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTkxNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/3299148?v=4","gravatar_id":"","url":"https://api.github.com/users/awslabs","html_url":"https://github.com/awslabs","followers_url":"https://api.github.com/users/awslabs/followers","following_url":"https://api.github.com/users/awslabs/following{/other_user}","gists_url":"https://api.github.com/users/awslabs/gists{/gist_id}","starred_url":"https://api.github.com/users/awslabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awslabs/subscriptions","organizations_url":"https://api.github.com/users/awslabs/orgs","repos_url":"https://api.github.com/users/awslabs/repos","events_url":"https://api.github.com/users/awslabs/events{/privacy}","received_events_url":"https://api.github.com/users/awslabs/received_events","type":"Organization","site_admin":false},"repo":{"id":36883937,"node_id":"MDEwOlJlcG9zaXRvcnkzNjg4MzkzNw==","name":"cfncluster-cookbook","full_name":"awslabs/cfncluster-cookbook","private":false,"owner":{"login":"awslabs","id":3299148,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTkxNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/3299148?v=4","gravatar_id":"","url":"https://api.github.com/users/awslabs","html_url":"https://github.com/awslabs","followers_url":"https://api.github.com/users/awslabs/followers","following_url":"https://api.github.com/users/awslabs/following{/other_user}","gists_url":"https://api.github.com/users/awslabs/gists{/gist_id}","starred_url":"https://api.github.com/users/awslabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awslabs/subscriptions","organizations_url":"https://api.github.com/users/awslabs/orgs","repos_url":"https://api.github.com/users/awslabs/repos","events_url":"https://api.github.com/users/awslabs/events{/privacy}","received_events_url":"https://api.github.com/users/awslabs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/awslabs/cfncluster-cookbook","description":"The Chef cookbook used to build and bootstrap CfnCluster","fork":false,"url":"https://api.github.com/repos/awslabs/cfncluster-cookbook","forks_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/forks","keys_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/teams","hooks_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/hooks","issue_events_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/issues/events{/number}","events_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/events","assignees_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/assignees{/user}","branches_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/branches{/branch}","tags_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/tags","blobs_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/statuses/{sha}","languages_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/languages","stargazers_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/stargazers","contributors_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/contributors","subscribers_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/subscribers","subscription_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/subscription","commits_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/contents/{+path}","compare_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/merges","archive_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/downloads","issues_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/issues{/number}","pulls_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/pulls{/number}","milestones_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/milestones{/number}","notifications_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/labels{/name}","releases_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/releases{/id}","deployments_url":"https://api.github.com/repos/awslabs/cfncluster-cookbook/deployments","created_at":"2015-06-04T16:59:16Z","updated_at":"2018-10-05T13:09:07Z","pushed_at":"2018-10-09T14:03:59Z","git_url":"git://github.com/awslabs/cfncluster-cookbook.git","ssh_url":"git@github.com:awslabs/cfncluster-cookbook.git","clone_url":"https://github.com/awslabs/cfncluster-cookbook.git","svn_url":"https://github.com/awslabs/cfncluster-cookbook","homepage":"http://aws.amazon.com/hpc/cfncluster","size":854,"stargazers_count":42,"watchers_count":42,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":37,"mirror_url":null,"archived":false,"open_issues_count":12,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":37,"open_issues":12,"watchers":42,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/awslabs/cfncluster-cookbook/pulls/197"},"html":{"href":"https://github.com/awslabs/cfncluster-cookbook/pull/197"},"issue":{"href":"https://api.github.com/repos/awslabs/cfncluster-cookbook/issues/197"},"comments":{"href":"https://api.github.com/repos/awslabs/cfncluster-cookbook/issues/197/comments"},"review_comments":{"href":"https://api.github.com/repos/awslabs/cfncluster-cookbook/pulls/197/comments"},"review_comment":{"href":"https://api.github.com/repos/awslabs/cfncluster-cookbook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/awslabs/cfncluster-cookbook/pulls/197/commits"},"statuses":{"href":"https://api.github.com/repos/awslabs/cfncluster-cookbook/statuses/d96f06754a81068fc4afba0c5b5faab390a60aa4"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":1,"deletions":3,"changed_files":1}}
{"actor":{"display_login":"lukeseawalker"}}