{"action":"closed","number":6,"pull_request":{"url":"https://api.github.com/repos/maxcanna/node-lightify-rest/pulls/6","id":83020870,"html_url":"https://github.com/maxcanna/node-lightify-rest/pull/6","diff_url":"https://github.com/maxcanna/node-lightify-rest/pull/6.diff","patch_url":"https://github.com/maxcanna/node-lightify-rest/pull/6.patch","issue_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/issues/6","number":6,"state":"closed","locked":false,"title":"Reduce code duplication","user":{"login":"maxcanna","id":1881831,"avatar_url":"https://avatars.githubusercontent.com/u/1881831?v=3","gravatar_id":"","url":"https://api.github.com/users/maxcanna","html_url":"https://github.com/maxcanna","followers_url":"https://api.github.com/users/maxcanna/followers","following_url":"https://api.github.com/users/maxcanna/following{/other_user}","gists_url":"https://api.github.com/users/maxcanna/gists{/gist_id}","starred_url":"https://api.github.com/users/maxcanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxcanna/subscriptions","organizations_url":"https://api.github.com/users/maxcanna/orgs","repos_url":"https://api.github.com/users/maxcanna/repos","events_url":"https://api.github.com/users/maxcanna/events{/privacy}","received_events_url":"https://api.github.com/users/maxcanna/received_events","type":"User","site_admin":false},"body":"Move duplicated code to a function","created_at":"2016-08-28T16:55:59Z","updated_at":"2016-08-28T17:00:26Z","closed_at":"2016-08-28T17:00:26Z","merged_at":"2016-08-28T17:00:26Z","merge_commit_sha":"7016eca04803d0ae0e6b6194381f2020b10d26e7","assignee":{"login":"maxcanna","id":1881831,"avatar_url":"https://avatars.githubusercontent.com/u/1881831?v=3","gravatar_id":"","url":"https://api.github.com/users/maxcanna","html_url":"https://github.com/maxcanna","followers_url":"https://api.github.com/users/maxcanna/followers","following_url":"https://api.github.com/users/maxcanna/following{/other_user}","gists_url":"https://api.github.com/users/maxcanna/gists{/gist_id}","starred_url":"https://api.github.com/users/maxcanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxcanna/subscriptions","organizations_url":"https://api.github.com/users/maxcanna/orgs","repos_url":"https://api.github.com/users/maxcanna/repos","events_url":"https://api.github.com/users/maxcanna/events{/privacy}","received_events_url":"https://api.github.com/users/maxcanna/received_events","type":"User","site_admin":false},"assignees":[{"login":"maxcanna","id":1881831,"avatar_url":"https://avatars.githubusercontent.com/u/1881831?v=3","gravatar_id":"","url":"https://api.github.com/users/maxcanna","html_url":"https://github.com/maxcanna","followers_url":"https://api.github.com/users/maxcanna/followers","following_url":"https://api.github.com/users/maxcanna/following{/other_user}","gists_url":"https://api.github.com/users/maxcanna/gists{/gist_id}","starred_url":"https://api.github.com/users/maxcanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxcanna/subscriptions","organizations_url":"https://api.github.com/users/maxcanna/orgs","repos_url":"https://api.github.com/users/maxcanna/repos","events_url":"https://api.github.com/users/maxcanna/events{/privacy}","received_events_url":"https://api.github.com/users/maxcanna/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/pulls/6/commits","review_comments_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/pulls/6/comments","review_comment_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/issues/6/comments","statuses_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/statuses/7b26007738c256dc4cc228ee860ee7151bf2af14","head":{"label":"maxcanna:reduce-code-duplication","ref":"reduce-code-duplication","sha":"7b26007738c256dc4cc228ee860ee7151bf2af14","user":{"login":"maxcanna","id":1881831,"avatar_url":"https://avatars.githubusercontent.com/u/1881831?v=3","gravatar_id":"","url":"https://api.github.com/users/maxcanna","html_url":"https://github.com/maxcanna","followers_url":"https://api.github.com/users/maxcanna/followers","following_url":"https://api.github.com/users/maxcanna/following{/other_user}","gists_url":"https://api.github.com/users/maxcanna/gists{/gist_id}","starred_url":"https://api.github.com/users/maxcanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxcanna/subscriptions","organizations_url":"https://api.github.com/users/maxcanna/orgs","repos_url":"https://api.github.com/users/maxcanna/repos","events_url":"https://api.github.com/users/maxcanna/events{/privacy}","received_events_url":"https://api.github.com/users/maxcanna/received_events","type":"User","site_admin":false},"repo":{"id":64664175,"name":"node-lightify-rest","full_name":"maxcanna/node-lightify-rest","owner":{"login":"maxcanna","id":1881831,"avatar_url":"https://avatars.githubusercontent.com/u/1881831?v=3","gravatar_id":"","url":"https://api.github.com/users/maxcanna","html_url":"https://github.com/maxcanna","followers_url":"https://api.github.com/users/maxcanna/followers","following_url":"https://api.github.com/users/maxcanna/following{/other_user}","gists_url":"https://api.github.com/users/maxcanna/gists{/gist_id}","starred_url":"https://api.github.com/users/maxcanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxcanna/subscriptions","organizations_url":"https://api.github.com/users/maxcanna/orgs","repos_url":"https://api.github.com/users/maxcanna/repos","events_url":"https://api.github.com/users/maxcanna/events{/privacy}","received_events_url":"https://api.github.com/users/maxcanna/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maxcanna/node-lightify-rest","description":"Node.js library to use Osram Lightify REST API","fork":false,"url":"https://api.github.com/repos/maxcanna/node-lightify-rest","forks_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/forks","keys_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/teams","hooks_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/hooks","issue_events_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/issues/events{/number}","events_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/events","assignees_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/assignees{/user}","branches_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/branches{/branch}","tags_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/tags","blobs_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/git/refs{/sha}","trees_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/statuses/{sha}","languages_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/languages","stargazers_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/stargazers","contributors_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/contributors","subscribers_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/subscribers","subscription_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/subscription","commits_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/commits{/sha}","git_commits_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/git/commits{/sha}","comments_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/comments{/number}","issue_comment_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/issues/comments{/number}","contents_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/contents/{+path}","compare_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/merges","archive_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/downloads","issues_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/issues{/number}","pulls_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/pulls{/number}","milestones_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/milestones{/number}","notifications_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/labels{/name}","releases_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/releases{/id}","deployments_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/deployments","created_at":"2016-08-01T12:14:50Z","updated_at":"2016-08-04T19:19:36Z","pushed_at":"2016-08-28T17:00:26Z","git_url":"git://github.com/maxcanna/node-lightify-rest.git","ssh_url":"git@github.com:maxcanna/node-lightify-rest.git","clone_url":"https://github.com/maxcanna/node-lightify-rest.git","svn_url":"https://github.com/maxcanna/node-lightify-rest","homepage":null,"size":27,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"maxcanna:master","ref":"master","sha":"323016be1757658f02bc66ab4dea75e2e908801b","user":{"login":"maxcanna","id":1881831,"avatar_url":"https://avatars.githubusercontent.com/u/1881831?v=3","gravatar_id":"","url":"https://api.github.com/users/maxcanna","html_url":"https://github.com/maxcanna","followers_url":"https://api.github.com/users/maxcanna/followers","following_url":"https://api.github.com/users/maxcanna/following{/other_user}","gists_url":"https://api.github.com/users/maxcanna/gists{/gist_id}","starred_url":"https://api.github.com/users/maxcanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxcanna/subscriptions","organizations_url":"https://api.github.com/users/maxcanna/orgs","repos_url":"https://api.github.com/users/maxcanna/repos","events_url":"https://api.github.com/users/maxcanna/events{/privacy}","received_events_url":"https://api.github.com/users/maxcanna/received_events","type":"User","site_admin":false},"repo":{"id":64664175,"name":"node-lightify-rest","full_name":"maxcanna/node-lightify-rest","owner":{"login":"maxcanna","id":1881831,"avatar_url":"https://avatars.githubusercontent.com/u/1881831?v=3","gravatar_id":"","url":"https://api.github.com/users/maxcanna","html_url":"https://github.com/maxcanna","followers_url":"https://api.github.com/users/maxcanna/followers","following_url":"https://api.github.com/users/maxcanna/following{/other_user}","gists_url":"https://api.github.com/users/maxcanna/gists{/gist_id}","starred_url":"https://api.github.com/users/maxcanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxcanna/subscriptions","organizations_url":"https://api.github.com/users/maxcanna/orgs","repos_url":"https://api.github.com/users/maxcanna/repos","events_url":"https://api.github.com/users/maxcanna/events{/privacy}","received_events_url":"https://api.github.com/users/maxcanna/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maxcanna/node-lightify-rest","description":"Node.js library to use Osram Lightify REST API","fork":false,"url":"https://api.github.com/repos/maxcanna/node-lightify-rest","forks_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/forks","keys_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/teams","hooks_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/hooks","issue_events_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/issues/events{/number}","events_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/events","assignees_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/assignees{/user}","branches_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/branches{/branch}","tags_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/tags","blobs_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/git/refs{/sha}","trees_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/statuses/{sha}","languages_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/languages","stargazers_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/stargazers","contributors_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/contributors","subscribers_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/subscribers","subscription_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/subscription","commits_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/commits{/sha}","git_commits_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/git/commits{/sha}","comments_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/comments{/number}","issue_comment_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/issues/comments{/number}","contents_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/contents/{+path}","compare_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/merges","archive_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/downloads","issues_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/issues{/number}","pulls_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/pulls{/number}","milestones_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/milestones{/number}","notifications_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/labels{/name}","releases_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/releases{/id}","deployments_url":"https://api.github.com/repos/maxcanna/node-lightify-rest/deployments","created_at":"2016-08-01T12:14:50Z","updated_at":"2016-08-04T19:19:36Z","pushed_at":"2016-08-28T17:00:26Z","git_url":"git://github.com/maxcanna/node-lightify-rest.git","ssh_url":"git@github.com:maxcanna/node-lightify-rest.git","clone_url":"https://github.com/maxcanna/node-lightify-rest.git","svn_url":"https://github.com/maxcanna/node-lightify-rest","homepage":null,"size":27,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/maxcanna/node-lightify-rest/pulls/6"},"html":{"href":"https://github.com/maxcanna/node-lightify-rest/pull/6"},"issue":{"href":"https://api.github.com/repos/maxcanna/node-lightify-rest/issues/6"},"comments":{"href":"https://api.github.com/repos/maxcanna/node-lightify-rest/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/maxcanna/node-lightify-rest/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/maxcanna/node-lightify-rest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/maxcanna/node-lightify-rest/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/maxcanna/node-lightify-rest/statuses/7b26007738c256dc4cc228ee860ee7151bf2af14"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"maxcanna","id":1881831,"avatar_url":"https://avatars.githubusercontent.com/u/1881831?v=3","gravatar_id":"","url":"https://api.github.com/users/maxcanna","html_url":"https://github.com/maxcanna","followers_url":"https://api.github.com/users/maxcanna/followers","following_url":"https://api.github.com/users/maxcanna/following{/other_user}","gists_url":"https://api.github.com/users/maxcanna/gists{/gist_id}","starred_url":"https://api.github.com/users/maxcanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxcanna/subscriptions","organizations_url":"https://api.github.com/users/maxcanna/orgs","repos_url":"https://api.github.com/users/maxcanna/repos","events_url":"https://api.github.com/users/maxcanna/events{/privacy}","received_events_url":"https://api.github.com/users/maxcanna/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":14,"deletions":18,"changed_files":1}}
{"actor":{"display_login":"maxcanna"}}