{"action":"created","comment":{"url":"https://api.github.com/repos/yast/yast-registration/pulls/comments/33653121","id":33653121,"diff_hunk":"@@ -185,5 +185,12 @@ def available?\n     def updates_addon?(old_addon)\n       old_addon[\"name\"] == identifier || old_addon[\"name\"] == @pure_addon.former_identifier\n     end\n+\n+    def matches_remote_product?(remote_product)\n+      arch == remote_product.arch &&\n+        identifier == remote_product.identifier &&\n+        version  == remote_product.version &&\n+        release_type == remote_product.release_type","path":"src/lib/registration/addon.rb","position":9,"original_position":9,"commit_id":"4c0efbf02b637b2350a5dd43002383d839f06f58","original_commit_id":"4c0efbf02b637b2350a5dd43002383d839f06f58","user":{"login":"jreidinger","id":478871,"avatar_url":"https://avatars.githubusercontent.com/u/478871?v=3","gravatar_id":"","url":"https://api.github.com/users/jreidinger","html_url":"https://github.com/jreidinger","followers_url":"https://api.github.com/users/jreidinger/followers","following_url":"https://api.github.com/users/jreidinger/following{/other_user}","gists_url":"https://api.github.com/users/jreidinger/gists{/gist_id}","starred_url":"https://api.github.com/users/jreidinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jreidinger/subscriptions","organizations_url":"https://api.github.com/users/jreidinger/orgs","repos_url":"https://api.github.com/users/jreidinger/repos","events_url":"https://api.github.com/users/jreidinger/events{/privacy}","received_events_url":"https://api.github.com/users/jreidinger/received_events","type":"User","site_admin":false},"body":"maybe better\r\n```\r\n[:arch, :identifier, :version, :release_type].all? do |attr|\r\n  send(attr) == remote_product.send(attr)\r\nend\r\n```","created_at":"2015-07-01T07:03:33Z","updated_at":"2015-07-01T07:03:33Z","html_url":"https://github.com/yast/yast-registration/pull/191#discussion_r33653121","pull_request_url":"https://api.github.com/repos/yast/yast-registration/pulls/191","_links":{"self":{"href":"https://api.github.com/repos/yast/yast-registration/pulls/comments/33653121"},"html":{"href":"https://github.com/yast/yast-registration/pull/191#discussion_r33653121"},"pull_request":{"href":"https://api.github.com/repos/yast/yast-registration/pulls/191"}}},"pull_request":{"url":"https://api.github.com/repos/yast/yast-registration/pulls/191","id":38953377,"html_url":"https://github.com/yast/yast-registration/pull/191","diff_url":"https://github.com/yast/yast-registration/pull/191.diff","patch_url":"https://github.com/yast/yast-registration/pull/191.patch","issue_url":"https://api.github.com/repos/yast/yast-registration/issues/191","number":191,"state":"open","locked":false,"title":"Online migration","user":{"login":"lslezak","id":907998,"avatar_url":"https://avatars.githubusercontent.com/u/907998?v=3","gravatar_id":"","url":"https://api.github.com/users/lslezak","html_url":"https://github.com/lslezak","followers_url":"https://api.github.com/users/lslezak/followers","following_url":"https://api.github.com/users/lslezak/following{/other_user}","gists_url":"https://api.github.com/users/lslezak/gists{/gist_id}","starred_url":"https://api.github.com/users/lslezak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lslezak/subscriptions","organizations_url":"https://api.github.com/users/lslezak/orgs","repos_url":"https://api.github.com/users/lslezak/repos","events_url":"https://api.github.com/users/lslezak/events{/privacy}","received_events_url":"https://api.github.com/users/lslezak/received_events","type":"User","site_admin":false},"body":"- Added support for online migration [FATE#315161](https://fate.suse.com/315161)\r\n- Small refactoring in the code (improves the [CodeClimate score by +0.15](https://codeclimate.com/github/yast/yast-registration/compare/online_migration))\r\n","created_at":"2015-07-01T06:59:20Z","updated_at":"2015-07-01T07:03:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6645269f92e3373681a232ad9d16d9917c190f3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yast/yast-registration/pulls/191/commits","review_comments_url":"https://api.github.com/repos/yast/yast-registration/pulls/191/comments","review_comment_url":"https://api.github.com/repos/yast/yast-registration/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yast/yast-registration/issues/191/comments","statuses_url":"https://api.github.com/repos/yast/yast-registration/statuses/4c0efbf02b637b2350a5dd43002383d839f06f58","head":{"label":"yast:online_migration","ref":"online_migration","sha":"4c0efbf02b637b2350a5dd43002383d839f06f58","user":{"login":"yast","id":909990,"avatar_url":"https://avatars.githubusercontent.com/u/909990?v=3","gravatar_id":"","url":"https://api.github.com/users/yast","html_url":"https://github.com/yast","followers_url":"https://api.github.com/users/yast/followers","following_url":"https://api.github.com/users/yast/following{/other_user}","gists_url":"https://api.github.com/users/yast/gists{/gist_id}","starred_url":"https://api.github.com/users/yast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yast/subscriptions","organizations_url":"https://api.github.com/users/yast/orgs","repos_url":"https://api.github.com/users/yast/repos","events_url":"https://api.github.com/users/yast/events{/privacy}","received_events_url":"https://api.github.com/users/yast/received_events","type":"Organization","site_admin":false},"repo":{"id":4368197,"name":"yast-registration","full_name":"yast/yast-registration","owner":{"login":"yast","id":909990,"avatar_url":"https://avatars.githubusercontent.com/u/909990?v=3","gravatar_id":"","url":"https://api.github.com/users/yast","html_url":"https://github.com/yast","followers_url":"https://api.github.com/users/yast/followers","following_url":"https://api.github.com/users/yast/following{/other_user}","gists_url":"https://api.github.com/users/yast/gists{/gist_id}","starred_url":"https://api.github.com/users/yast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yast/subscriptions","organizations_url":"https://api.github.com/users/yast/orgs","repos_url":"https://api.github.com/users/yast/repos","events_url":"https://api.github.com/users/yast/events{/privacy}","received_events_url":"https://api.github.com/users/yast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yast/yast-registration","description":"YaST module registration","fork":false,"url":"https://api.github.com/repos/yast/yast-registration","forks_url":"https://api.github.com/repos/yast/yast-registration/forks","keys_url":"https://api.github.com/repos/yast/yast-registration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yast/yast-registration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yast/yast-registration/teams","hooks_url":"https://api.github.com/repos/yast/yast-registration/hooks","issue_events_url":"https://api.github.com/repos/yast/yast-registration/issues/events{/number}","events_url":"https://api.github.com/repos/yast/yast-registration/events","assignees_url":"https://api.github.com/repos/yast/yast-registration/assignees{/user}","branches_url":"https://api.github.com/repos/yast/yast-registration/branches{/branch}","tags_url":"https://api.github.com/repos/yast/yast-registration/tags","blobs_url":"https://api.github.com/repos/yast/yast-registration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yast/yast-registration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yast/yast-registration/git/refs{/sha}","trees_url":"https://api.github.com/repos/yast/yast-registration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yast/yast-registration/statuses/{sha}","languages_url":"https://api.github.com/repos/yast/yast-registration/languages","stargazers_url":"https://api.github.com/repos/yast/yast-registration/stargazers","contributors_url":"https://api.github.com/repos/yast/yast-registration/contributors","subscribers_url":"https://api.github.com/repos/yast/yast-registration/subscribers","subscription_url":"https://api.github.com/repos/yast/yast-registration/subscription","commits_url":"https://api.github.com/repos/yast/yast-registration/commits{/sha}","git_commits_url":"https://api.github.com/repos/yast/yast-registration/git/commits{/sha}","comments_url":"https://api.github.com/repos/yast/yast-registration/comments{/number}","issue_comment_url":"https://api.github.com/repos/yast/yast-registration/issues/comments{/number}","contents_url":"https://api.github.com/repos/yast/yast-registration/contents/{+path}","compare_url":"https://api.github.com/repos/yast/yast-registration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yast/yast-registration/merges","archive_url":"https://api.github.com/repos/yast/yast-registration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yast/yast-registration/downloads","issues_url":"https://api.github.com/repos/yast/yast-registration/issues{/number}","pulls_url":"https://api.github.com/repos/yast/yast-registration/pulls{/number}","milestones_url":"https://api.github.com/repos/yast/yast-registration/milestones{/number}","notifications_url":"https://api.github.com/repos/yast/yast-registration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yast/yast-registration/labels{/name}","releases_url":"https://api.github.com/repos/yast/yast-registration/releases{/id}","created_at":"2012-05-18T10:25:55Z","updated_at":"2015-04-24T08:10:18Z","pushed_at":"2015-07-01T06:59:20Z","git_url":"git://github.com/yast/yast-registration.git","ssh_url":"git@github.com:yast/yast-registration.git","clone_url":"https://github.com/yast/yast-registration.git","svn_url":"https://github.com/yast/yast-registration","homepage":"http://en.opensuse.org/Portal:YaST","size":4514,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":2,"forks":8,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"yast:master","ref":"master","sha":"88f98983624f95b1fd4d89e44583e36ff19d3cca","user":{"login":"yast","id":909990,"avatar_url":"https://avatars.githubusercontent.com/u/909990?v=3","gravatar_id":"","url":"https://api.github.com/users/yast","html_url":"https://github.com/yast","followers_url":"https://api.github.com/users/yast/followers","following_url":"https://api.github.com/users/yast/following{/other_user}","gists_url":"https://api.github.com/users/yast/gists{/gist_id}","starred_url":"https://api.github.com/users/yast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yast/subscriptions","organizations_url":"https://api.github.com/users/yast/orgs","repos_url":"https://api.github.com/users/yast/repos","events_url":"https://api.github.com/users/yast/events{/privacy}","received_events_url":"https://api.github.com/users/yast/received_events","type":"Organization","site_admin":false},"repo":{"id":4368197,"name":"yast-registration","full_name":"yast/yast-registration","owner":{"login":"yast","id":909990,"avatar_url":"https://avatars.githubusercontent.com/u/909990?v=3","gravatar_id":"","url":"https://api.github.com/users/yast","html_url":"https://github.com/yast","followers_url":"https://api.github.com/users/yast/followers","following_url":"https://api.github.com/users/yast/following{/other_user}","gists_url":"https://api.github.com/users/yast/gists{/gist_id}","starred_url":"https://api.github.com/users/yast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yast/subscriptions","organizations_url":"https://api.github.com/users/yast/orgs","repos_url":"https://api.github.com/users/yast/repos","events_url":"https://api.github.com/users/yast/events{/privacy}","received_events_url":"https://api.github.com/users/yast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yast/yast-registration","description":"YaST module registration","fork":false,"url":"https://api.github.com/repos/yast/yast-registration","forks_url":"https://api.github.com/repos/yast/yast-registration/forks","keys_url":"https://api.github.com/repos/yast/yast-registration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yast/yast-registration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yast/yast-registration/teams","hooks_url":"https://api.github.com/repos/yast/yast-registration/hooks","issue_events_url":"https://api.github.com/repos/yast/yast-registration/issues/events{/number}","events_url":"https://api.github.com/repos/yast/yast-registration/events","assignees_url":"https://api.github.com/repos/yast/yast-registration/assignees{/user}","branches_url":"https://api.github.com/repos/yast/yast-registration/branches{/branch}","tags_url":"https://api.github.com/repos/yast/yast-registration/tags","blobs_url":"https://api.github.com/repos/yast/yast-registration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yast/yast-registration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yast/yast-registration/git/refs{/sha}","trees_url":"https://api.github.com/repos/yast/yast-registration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yast/yast-registration/statuses/{sha}","languages_url":"https://api.github.com/repos/yast/yast-registration/languages","stargazers_url":"https://api.github.com/repos/yast/yast-registration/stargazers","contributors_url":"https://api.github.com/repos/yast/yast-registration/contributors","subscribers_url":"https://api.github.com/repos/yast/yast-registration/subscribers","subscription_url":"https://api.github.com/repos/yast/yast-registration/subscription","commits_url":"https://api.github.com/repos/yast/yast-registration/commits{/sha}","git_commits_url":"https://api.github.com/repos/yast/yast-registration/git/commits{/sha}","comments_url":"https://api.github.com/repos/yast/yast-registration/comments{/number}","issue_comment_url":"https://api.github.com/repos/yast/yast-registration/issues/comments{/number}","contents_url":"https://api.github.com/repos/yast/yast-registration/contents/{+path}","compare_url":"https://api.github.com/repos/yast/yast-registration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yast/yast-registration/merges","archive_url":"https://api.github.com/repos/yast/yast-registration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yast/yast-registration/downloads","issues_url":"https://api.github.com/repos/yast/yast-registration/issues{/number}","pulls_url":"https://api.github.com/repos/yast/yast-registration/pulls{/number}","milestones_url":"https://api.github.com/repos/yast/yast-registration/milestones{/number}","notifications_url":"https://api.github.com/repos/yast/yast-registration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yast/yast-registration/labels{/name}","releases_url":"https://api.github.com/repos/yast/yast-registration/releases{/id}","created_at":"2012-05-18T10:25:55Z","updated_at":"2015-04-24T08:10:18Z","pushed_at":"2015-07-01T06:59:20Z","git_url":"git://github.com/yast/yast-registration.git","ssh_url":"git@github.com:yast/yast-registration.git","clone_url":"https://github.com/yast/yast-registration.git","svn_url":"https://github.com/yast/yast-registration","homepage":"http://en.opensuse.org/Portal:YaST","size":4514,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":2,"forks":8,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yast/yast-registration/pulls/191"},"html":{"href":"https://github.com/yast/yast-registration/pull/191"},"issue":{"href":"https://api.github.com/repos/yast/yast-registration/issues/191"},"comments":{"href":"https://api.github.com/repos/yast/yast-registration/issues/191/comments"},"review_comments":{"href":"https://api.github.com/repos/yast/yast-registration/pulls/191/comments"},"review_comment":{"href":"https://api.github.com/repos/yast/yast-registration/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yast/yast-registration/pulls/191/commits"},"statuses":{"href":"https://api.github.com/repos/yast/yast-registration/statuses/4c0efbf02b637b2350a5dd43002383d839f06f58"}}}}