{"action":"created","comment":{"url":"https://api.github.com/repos/SUSE/machinery/pulls/comments/46319674","id":46319674,"diff_hunk":"@@ -61,56 +62,55 @@\n       EOF\n     }\n     let(:expected_repo_list) {\n-      RepositoriesScope.new([\n-        Repository.new(\n-          alias: \"nu_novell_com:SLES11-SP3-Pool\",\n-          name: \"SLES11-SP3-Pool\",\n-          type: \"rpm-md\",\n-          enabled: true,\n-          autorefresh: true,\n-          gpgcheck: true,\n-          priority: 99,\n-          url: \"https://nu.novell.com/repo/$RCE/SLES11-SP3-Pool/sle-11-i586?credentials=NCCcredentials\",\n-          username: \"d4c0246d79334fa59a9ffe625fffef1d\",\n-          password: \"0a0918c876ef4a1d9c352e5c47421235\",\n-          package_manager: \"zypp\"\n-        ),\n-        Repository.new(\n-          alias: \"SUSE_Linux_Enterprise_Server_12_x86_64:SLES12-Pool\",\n-          name: \"SLES12-Pool\",\n-          type: \"rpm-md\",\n-          enabled: true,\n-          autorefresh: false,\n-          gpgcheck: true,\n-          priority: 99,\n-          url: \"https://updates.suse.com/SUSE/Products/SLE-SERVER/12/x86_64/product?5bcc650926e7f0c7ef4858047a5c1351f4239abe4dc5aafc7361cc2b47c1c13d21e53b8150115ffdd717636c1a26862f8e4ae463bbb1f318fea4234fe7202173edaf71db08671ff733d5a5695b1bd052deae102819327f8ac6ec4e\",\n-          username: \"SCC_d91435cca69a232114cf2e14aa830ad5\",\n-          password: \"2fdcb7499fd46842\",\n-          package_manager: \"zypp\"\n-        ),\n-        Repository.new(\n-          alias: \"repo-oss\",\n-          name: \"openSUSE-Oss\",\n-          type: \"yast2\",\n-          enabled: true,\n-          autorefresh: true,\n-          gpgcheck: true,\n-          priority: 22,\n-          url: \"http://download.opensuse.org/distribution/13.1/repo/oss/\",\n-          package_manager: \"zypp\"\n-        ),\n+      RepositoriesScope.new(\n+        [\n           Repository.new(\n-          alias: \"repo-update\",\n-          name: \"openSUSE-Update\",\n-          type: \"rpm-md\",\n-          enabled: false,\n-          autorefresh: false,\n-          gpgcheck: false,\n-          priority: 47,\n-          url: \"http://download.opensuse.org/update/13.1/\",\n-          package_manager: \"zypp\"\n-        )\n-      ])\n+            alias: \"nu_novell_com:SLES11-SP3-Pool\",\n+            name: \"SLES11-SP3-Pool\",\n+            type: \"rpm-md\",\n+            enabled: true,\n+            autorefresh: true,\n+            gpgcheck: true,\n+            priority: 99,\n+            url: \"https://nu.novell.com/repo/$RCE/SLES11-SP3-Pool/sle-11-i586?credentials=NCCcredentials\",\n+            username: \"d4c0246d79334fa59a9ffe625fffef1d\",\n+            password: \"0a0918c876ef4a1d9c352e5c47421235\"\n+          ),\n+          Repository.new(\n+            alias: \"SUSE_Linux_Enterprise_Server_12_x86_64:SLES12-Pool\",\n+            name: \"SLES12-Pool\",\n+            type: \"rpm-md\",\n+            enabled: true,\n+            autorefresh: false,\n+            gpgcheck: true,\n+            priority: 99,\n+            url: \"https://updates.suse.com/SUSE/Products/SLE-SERVER/12/x86_64/product?5bcc650926e7f0c7ef4858047a5c1351f4239abe4dc5aafc7361cc2b47c1c13d21e53b8150115ffdd717636c1a26862f8e4ae463bbb1f318fea4234fe7202173edaf71db08671ff733d5a5695b1bd052deae102819327f8ac6ec4e\",\n+            username: \"SCC_d91435cca69a232114cf2e14aa830ad5\",\n+            password: \"2fdcb7499fd46842\"\n+          ),\n+          Repository.new(\n+            alias: \"repo-oss\",\n+            name: \"openSUSE-Oss\",\n+            type: \"yast2\",\n+            enabled: true,\n+            autorefresh: true,\n+            gpgcheck: true,\n+            priority: 22,\n+            url: \"http://download.opensuse.org/distribution/13.1/repo/oss/\"\n+          ),\n+            Repository.new(\n+            alias: \"repo-update\",","path":"spec/unit/repositories_inspector_spec.rb","position":98,"original_position":98,"commit_id":"bbed16bc30de02688d8008ab91596bab93e8b3bb","original_commit_id":"bbed16bc30de02688d8008ab91596bab93e8b3bb","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Indent the first parameter one step more than the start of the previous line.","created_at":"2015-12-01T18:45:03Z","updated_at":"2015-12-01T18:45:03Z","html_url":"https://github.com/SUSE/machinery/pull/1727#discussion_r46319674","pull_request_url":"https://api.github.com/repos/SUSE/machinery/pulls/1727","_links":{"self":{"href":"https://api.github.com/repos/SUSE/machinery/pulls/comments/46319674"},"html":{"href":"https://github.com/SUSE/machinery/pull/1727#discussion_r46319674"},"pull_request":{"href":"https://api.github.com/repos/SUSE/machinery/pulls/1727"}}},"pull_request":{"url":"https://api.github.com/repos/SUSE/machinery/pulls/1727","id":52297409,"html_url":"https://github.com/SUSE/machinery/pull/1727","diff_url":"https://github.com/SUSE/machinery/pull/1727.diff","patch_url":"https://github.com/SUSE/machinery/pull/1727.patch","issue_url":"https://api.github.com/repos/SUSE/machinery/issues/1727","number":1727,"state":"open","locked":false,"title":"Ubuntu inspection with repos","user":{"login":"thardeck","id":2063848,"avatar_url":"https://avatars.githubusercontent.com/u/2063848?v=3","gravatar_id":"","url":"https://api.github.com/users/thardeck","html_url":"https://github.com/thardeck","followers_url":"https://api.github.com/users/thardeck/followers","following_url":"https://api.github.com/users/thardeck/following{/other_user}","gists_url":"https://api.github.com/users/thardeck/gists{/gist_id}","starred_url":"https://api.github.com/users/thardeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thardeck/subscriptions","organizations_url":"https://api.github.com/users/thardeck/orgs","repos_url":"https://api.github.com/users/thardeck/repos","events_url":"https://api.github.com/users/thardeck/events{/privacy}","received_events_url":"https://api.github.com/users/thardeck/received_events","type":"User","site_admin":false},"body":"The last commit is not directly related to the repo changes but without it the message about empty repositories isn't shown. This can be fixed by adapting the repository renderer code but I think the implementation of the `empty?` method was wrong, hence the fix.\r\n\r\nThe doc files also need to be adapted but this can be done in a separate pull request for all scopes.","created_at":"2015-12-01T18:39:01Z","updated_at":"2015-12-01T18:45:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"be236dbbe43e77e86162e13bcd4eb3677af241e3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SUSE/machinery/pulls/1727/commits","review_comments_url":"https://api.github.com/repos/SUSE/machinery/pulls/1727/comments","review_comment_url":"https://api.github.com/repos/SUSE/machinery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SUSE/machinery/issues/1727/comments","statuses_url":"https://api.github.com/repos/SUSE/machinery/statuses/bbed16bc30de02688d8008ab91596bab93e8b3bb","head":{"label":"SUSE:ubuntu_inspection_with_repos","ref":"ubuntu_inspection_with_repos","sha":"bbed16bc30de02688d8008ab91596bab93e8b3bb","user":{"login":"SUSE","id":1067733,"avatar_url":"https://avatars.githubusercontent.com/u/1067733?v=3","gravatar_id":"","url":"https://api.github.com/users/SUSE","html_url":"https://github.com/SUSE","followers_url":"https://api.github.com/users/SUSE/followers","following_url":"https://api.github.com/users/SUSE/following{/other_user}","gists_url":"https://api.github.com/users/SUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/SUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUSE/subscriptions","organizations_url":"https://api.github.com/users/SUSE/orgs","repos_url":"https://api.github.com/users/SUSE/repos","events_url":"https://api.github.com/users/SUSE/events{/privacy}","received_events_url":"https://api.github.com/users/SUSE/received_events","type":"Organization","site_admin":false},"repo":{"id":21424418,"name":"machinery","full_name":"SUSE/machinery","owner":{"login":"SUSE","id":1067733,"avatar_url":"https://avatars.githubusercontent.com/u/1067733?v=3","gravatar_id":"","url":"https://api.github.com/users/SUSE","html_url":"https://github.com/SUSE","followers_url":"https://api.github.com/users/SUSE/followers","following_url":"https://api.github.com/users/SUSE/following{/other_user}","gists_url":"https://api.github.com/users/SUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/SUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUSE/subscriptions","organizations_url":"https://api.github.com/users/SUSE/orgs","repos_url":"https://api.github.com/users/SUSE/repos","events_url":"https://api.github.com/users/SUSE/events{/privacy}","received_events_url":"https://api.github.com/users/SUSE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SUSE/machinery","description":"A systems management toolkit for Linux","fork":false,"url":"https://api.github.com/repos/SUSE/machinery","forks_url":"https://api.github.com/repos/SUSE/machinery/forks","keys_url":"https://api.github.com/repos/SUSE/machinery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SUSE/machinery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SUSE/machinery/teams","hooks_url":"https://api.github.com/repos/SUSE/machinery/hooks","issue_events_url":"https://api.github.com/repos/SUSE/machinery/issues/events{/number}","events_url":"https://api.github.com/repos/SUSE/machinery/events","assignees_url":"https://api.github.com/repos/SUSE/machinery/assignees{/user}","branches_url":"https://api.github.com/repos/SUSE/machinery/branches{/branch}","tags_url":"https://api.github.com/repos/SUSE/machinery/tags","blobs_url":"https://api.github.com/repos/SUSE/machinery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SUSE/machinery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SUSE/machinery/git/refs{/sha}","trees_url":"https://api.github.com/repos/SUSE/machinery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SUSE/machinery/statuses/{sha}","languages_url":"https://api.github.com/repos/SUSE/machinery/languages","stargazers_url":"https://api.github.com/repos/SUSE/machinery/stargazers","contributors_url":"https://api.github.com/repos/SUSE/machinery/contributors","subscribers_url":"https://api.github.com/repos/SUSE/machinery/subscribers","subscription_url":"https://api.github.com/repos/SUSE/machinery/subscription","commits_url":"https://api.github.com/repos/SUSE/machinery/commits{/sha}","git_commits_url":"https://api.github.com/repos/SUSE/machinery/git/commits{/sha}","comments_url":"https://api.github.com/repos/SUSE/machinery/comments{/number}","issue_comment_url":"https://api.github.com/repos/SUSE/machinery/issues/comments{/number}","contents_url":"https://api.github.com/repos/SUSE/machinery/contents/{+path}","compare_url":"https://api.github.com/repos/SUSE/machinery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SUSE/machinery/merges","archive_url":"https://api.github.com/repos/SUSE/machinery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SUSE/machinery/downloads","issues_url":"https://api.github.com/repos/SUSE/machinery/issues{/number}","pulls_url":"https://api.github.com/repos/SUSE/machinery/pulls{/number}","milestones_url":"https://api.github.com/repos/SUSE/machinery/milestones{/number}","notifications_url":"https://api.github.com/repos/SUSE/machinery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SUSE/machinery/labels{/name}","releases_url":"https://api.github.com/repos/SUSE/machinery/releases{/id}","created_at":"2014-07-02T13:07:04Z","updated_at":"2015-12-01T01:00:39Z","pushed_at":"2015-12-01T18:39:02Z","git_url":"git://github.com/SUSE/machinery.git","ssh_url":"git@github.com:SUSE/machinery.git","clone_url":"https://github.com/SUSE/machinery.git","svn_url":"https://github.com/SUSE/machinery","homepage":"machinery-project.org","size":60719,"stargazers_count":77,"watchers_count":77,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":14,"mirror_url":null,"open_issues_count":52,"forks":14,"open_issues":52,"watchers":77,"default_branch":"master"}},"base":{"label":"SUSE:ubuntu_inspection","ref":"ubuntu_inspection","sha":"a09aaf17428934dcf88401c0f8bb85164e398218","user":{"login":"SUSE","id":1067733,"avatar_url":"https://avatars.githubusercontent.com/u/1067733?v=3","gravatar_id":"","url":"https://api.github.com/users/SUSE","html_url":"https://github.com/SUSE","followers_url":"https://api.github.com/users/SUSE/followers","following_url":"https://api.github.com/users/SUSE/following{/other_user}","gists_url":"https://api.github.com/users/SUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/SUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUSE/subscriptions","organizations_url":"https://api.github.com/users/SUSE/orgs","repos_url":"https://api.github.com/users/SUSE/repos","events_url":"https://api.github.com/users/SUSE/events{/privacy}","received_events_url":"https://api.github.com/users/SUSE/received_events","type":"Organization","site_admin":false},"repo":{"id":21424418,"name":"machinery","full_name":"SUSE/machinery","owner":{"login":"SUSE","id":1067733,"avatar_url":"https://avatars.githubusercontent.com/u/1067733?v=3","gravatar_id":"","url":"https://api.github.com/users/SUSE","html_url":"https://github.com/SUSE","followers_url":"https://api.github.com/users/SUSE/followers","following_url":"https://api.github.com/users/SUSE/following{/other_user}","gists_url":"https://api.github.com/users/SUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/SUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUSE/subscriptions","organizations_url":"https://api.github.com/users/SUSE/orgs","repos_url":"https://api.github.com/users/SUSE/repos","events_url":"https://api.github.com/users/SUSE/events{/privacy}","received_events_url":"https://api.github.com/users/SUSE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SUSE/machinery","description":"A systems management toolkit for Linux","fork":false,"url":"https://api.github.com/repos/SUSE/machinery","forks_url":"https://api.github.com/repos/SUSE/machinery/forks","keys_url":"https://api.github.com/repos/SUSE/machinery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SUSE/machinery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SUSE/machinery/teams","hooks_url":"https://api.github.com/repos/SUSE/machinery/hooks","issue_events_url":"https://api.github.com/repos/SUSE/machinery/issues/events{/number}","events_url":"https://api.github.com/repos/SUSE/machinery/events","assignees_url":"https://api.github.com/repos/SUSE/machinery/assignees{/user}","branches_url":"https://api.github.com/repos/SUSE/machinery/branches{/branch}","tags_url":"https://api.github.com/repos/SUSE/machinery/tags","blobs_url":"https://api.github.com/repos/SUSE/machinery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SUSE/machinery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SUSE/machinery/git/refs{/sha}","trees_url":"https://api.github.com/repos/SUSE/machinery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SUSE/machinery/statuses/{sha}","languages_url":"https://api.github.com/repos/SUSE/machinery/languages","stargazers_url":"https://api.github.com/repos/SUSE/machinery/stargazers","contributors_url":"https://api.github.com/repos/SUSE/machinery/contributors","subscribers_url":"https://api.github.com/repos/SUSE/machinery/subscribers","subscription_url":"https://api.github.com/repos/SUSE/machinery/subscription","commits_url":"https://api.github.com/repos/SUSE/machinery/commits{/sha}","git_commits_url":"https://api.github.com/repos/SUSE/machinery/git/commits{/sha}","comments_url":"https://api.github.com/repos/SUSE/machinery/comments{/number}","issue_comment_url":"https://api.github.com/repos/SUSE/machinery/issues/comments{/number}","contents_url":"https://api.github.com/repos/SUSE/machinery/contents/{+path}","compare_url":"https://api.github.com/repos/SUSE/machinery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SUSE/machinery/merges","archive_url":"https://api.github.com/repos/SUSE/machinery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SUSE/machinery/downloads","issues_url":"https://api.github.com/repos/SUSE/machinery/issues{/number}","pulls_url":"https://api.github.com/repos/SUSE/machinery/pulls{/number}","milestones_url":"https://api.github.com/repos/SUSE/machinery/milestones{/number}","notifications_url":"https://api.github.com/repos/SUSE/machinery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SUSE/machinery/labels{/name}","releases_url":"https://api.github.com/repos/SUSE/machinery/releases{/id}","created_at":"2014-07-02T13:07:04Z","updated_at":"2015-12-01T01:00:39Z","pushed_at":"2015-12-01T18:39:02Z","git_url":"git://github.com/SUSE/machinery.git","ssh_url":"git@github.com:SUSE/machinery.git","clone_url":"https://github.com/SUSE/machinery.git","svn_url":"https://github.com/SUSE/machinery","homepage":"machinery-project.org","size":60719,"stargazers_count":77,"watchers_count":77,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":14,"mirror_url":null,"open_issues_count":52,"forks":14,"open_issues":52,"watchers":77,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SUSE/machinery/pulls/1727"},"html":{"href":"https://github.com/SUSE/machinery/pull/1727"},"issue":{"href":"https://api.github.com/repos/SUSE/machinery/issues/1727"},"comments":{"href":"https://api.github.com/repos/SUSE/machinery/issues/1727/comments"},"review_comments":{"href":"https://api.github.com/repos/SUSE/machinery/pulls/1727/comments"},"review_comment":{"href":"https://api.github.com/repos/SUSE/machinery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SUSE/machinery/pulls/1727/commits"},"statuses":{"href":"https://api.github.com/repos/SUSE/machinery/statuses/bbed16bc30de02688d8008ab91596bab93e8b3bb"}}}}