{"action":"created","comment":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/comments/221784606","pull_request_review_id":160519104,"id":221784606,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMTc4NDYwNg==","diff_hunk":"@@ -0,0 +1,41 @@\n+require 'test_helper'\n+\n+class ReportScopeTest < ActiveSupport::TestCase\n+  setup do\n+    source = Foreman::Renderer::Source::String.new(content: '')\n+    @scope = Foreman::Renderer::Scope::Report.new(source: source)\n+  end\n+\n+  describe '#report_render' do\n+    test 'render simple values' do\n+      @scope.report_row( 'Col1': 'Val1', 'Col2': 'Val2')","path":"test/unit/foreman/renderer/scope/report_test.rb","position":11,"original_position":11,"commit_id":"89463ba4188e3324f716dcce7c2100f5168c7dc2","original_commit_id":"89463ba4188e3324f716dcce7c2100f5168c7dc2","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Layout/SpaceInsideParens: Space inside parentheses detected.","created_at":"2018-10-01T23:09:59Z","updated_at":"2018-10-01T23:09:59Z","html_url":"https://github.com/theforeman/foreman/pull/6100#discussion_r221784606","pull_request_url":"https://api.github.com/repos/theforeman/foreman/pulls/6100","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/comments/221784606"},"html":{"href":"https://github.com/theforeman/foreman/pull/6100#discussion_r221784606"},"pull_request":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/6100"}}},"pull_request":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/6100","id":219542406,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5NTQyNDA2","html_url":"https://github.com/theforeman/foreman/pull/6100","diff_url":"https://github.com/theforeman/foreman/pull/6100.diff","patch_url":"https://github.com/theforeman/foreman/pull/6100.patch","issue_url":"https://api.github.com/repos/theforeman/foreman/issues/6100","number":6100,"state":"open","locked":false,"title":"Refs #10521 - Add macros for easier report definition","user":{"login":"mbacovsky","id":1648174,"node_id":"MDQ6VXNlcjE2NDgxNzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1648174?v=4","gravatar_id":"","url":"https://api.github.com/users/mbacovsky","html_url":"https://github.com/mbacovsky","followers_url":"https://api.github.com/users/mbacovsky/followers","following_url":"https://api.github.com/users/mbacovsky/following{/other_user}","gists_url":"https://api.github.com/users/mbacovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/mbacovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbacovsky/subscriptions","organizations_url":"https://api.github.com/users/mbacovsky/orgs","repos_url":"https://api.github.com/users/mbacovsky/repos","events_url":"https://api.github.com/users/mbacovsky/events{/privacy}","received_events_url":"https://api.github.com/users/mbacovsky/received_events","type":"User","site_admin":false},"body":"Add rows to a report with\r\n```erb\r\n  <%- report_row(\r\n    'Column header 1': 'Value 1',\r\n    'Column header 2': `Value 2`,\r\n  ) -%>\r\n```\r\nand render the report with\r\n```erb\r\n <%= report_render -%>\r\n```\r\n\r\nEach row of the report needs to have the same columns.\r\nreport_render produces properly quoted valid CSV.\r\nValues are converted to a String using to_s.\r\nEnumerable values are comma separated and serialized.\r\n\r\nExperimental render to YAML is included (report_render(format: :yaml)\r\nEnumerable values are kept structured in this format.\r\n","created_at":"2018-10-01T23:09:48Z","updated_at":"2018-10-01T23:09:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"daf59ca4190b8e55b296f8d0d8f5d873313f759a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/theforeman/foreman/pulls/6100/commits","review_comments_url":"https://api.github.com/repos/theforeman/foreman/pulls/6100/comments","review_comment_url":"https://api.github.com/repos/theforeman/foreman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theforeman/foreman/issues/6100/comments","statuses_url":"https://api.github.com/repos/theforeman/foreman/statuses/89463ba4188e3324f716dcce7c2100f5168c7dc2","head":{"label":"mbacovsky:10521_report_macros","ref":"10521_report_macros","sha":"89463ba4188e3324f716dcce7c2100f5168c7dc2","user":{"login":"mbacovsky","id":1648174,"node_id":"MDQ6VXNlcjE2NDgxNzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1648174?v=4","gravatar_id":"","url":"https://api.github.com/users/mbacovsky","html_url":"https://github.com/mbacovsky","followers_url":"https://api.github.com/users/mbacovsky/followers","following_url":"https://api.github.com/users/mbacovsky/following{/other_user}","gists_url":"https://api.github.com/users/mbacovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/mbacovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbacovsky/subscriptions","organizations_url":"https://api.github.com/users/mbacovsky/orgs","repos_url":"https://api.github.com/users/mbacovsky/repos","events_url":"https://api.github.com/users/mbacovsky/events{/privacy}","received_events_url":"https://api.github.com/users/mbacovsky/received_events","type":"User","site_admin":false},"repo":{"id":4673093,"node_id":"MDEwOlJlcG9zaXRvcnk0NjczMDkz","name":"foreman","full_name":"mbacovsky/foreman","private":false,"owner":{"login":"mbacovsky","id":1648174,"node_id":"MDQ6VXNlcjE2NDgxNzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1648174?v=4","gravatar_id":"","url":"https://api.github.com/users/mbacovsky","html_url":"https://github.com/mbacovsky","followers_url":"https://api.github.com/users/mbacovsky/followers","following_url":"https://api.github.com/users/mbacovsky/following{/other_user}","gists_url":"https://api.github.com/users/mbacovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/mbacovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbacovsky/subscriptions","organizations_url":"https://api.github.com/users/mbacovsky/orgs","repos_url":"https://api.github.com/users/mbacovsky/repos","events_url":"https://api.github.com/users/mbacovsky/events{/privacy}","received_events_url":"https://api.github.com/users/mbacovsky/received_events","type":"User","site_admin":false},"html_url":"https://github.com/mbacovsky/foreman","description":"an application that automates the lifecycle of servers ","fork":true,"url":"https://api.github.com/repos/mbacovsky/foreman","forks_url":"https://api.github.com/repos/mbacovsky/foreman/forks","keys_url":"https://api.github.com/repos/mbacovsky/foreman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mbacovsky/foreman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mbacovsky/foreman/teams","hooks_url":"https://api.github.com/repos/mbacovsky/foreman/hooks","issue_events_url":"https://api.github.com/repos/mbacovsky/foreman/issues/events{/number}","events_url":"https://api.github.com/repos/mbacovsky/foreman/events","assignees_url":"https://api.github.com/repos/mbacovsky/foreman/assignees{/user}","branches_url":"https://api.github.com/repos/mbacovsky/foreman/branches{/branch}","tags_url":"https://api.github.com/repos/mbacovsky/foreman/tags","blobs_url":"https://api.github.com/repos/mbacovsky/foreman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mbacovsky/foreman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mbacovsky/foreman/git/refs{/sha}","trees_url":"https://api.github.com/repos/mbacovsky/foreman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mbacovsky/foreman/statuses/{sha}","languages_url":"https://api.github.com/repos/mbacovsky/foreman/languages","stargazers_url":"https://api.github.com/repos/mbacovsky/foreman/stargazers","contributors_url":"https://api.github.com/repos/mbacovsky/foreman/contributors","subscribers_url":"https://api.github.com/repos/mbacovsky/foreman/subscribers","subscription_url":"https://api.github.com/repos/mbacovsky/foreman/subscription","commits_url":"https://api.github.com/repos/mbacovsky/foreman/commits{/sha}","git_commits_url":"https://api.github.com/repos/mbacovsky/foreman/git/commits{/sha}","comments_url":"https://api.github.com/repos/mbacovsky/foreman/comments{/number}","issue_comment_url":"https://api.github.com/repos/mbacovsky/foreman/issues/comments{/number}","contents_url":"https://api.github.com/repos/mbacovsky/foreman/contents/{+path}","compare_url":"https://api.github.com/repos/mbacovsky/foreman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mbacovsky/foreman/merges","archive_url":"https://api.github.com/repos/mbacovsky/foreman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mbacovsky/foreman/downloads","issues_url":"https://api.github.com/repos/mbacovsky/foreman/issues{/number}","pulls_url":"https://api.github.com/repos/mbacovsky/foreman/pulls{/number}","milestones_url":"https://api.github.com/repos/mbacovsky/foreman/milestones{/number}","notifications_url":"https://api.github.com/repos/mbacovsky/foreman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mbacovsky/foreman/labels{/name}","releases_url":"https://api.github.com/repos/mbacovsky/foreman/releases{/id}","deployments_url":"https://api.github.com/repos/mbacovsky/foreman/deployments","created_at":"2012-06-15T08:42:12Z","updated_at":"2014-07-17T10:32:08Z","pushed_at":"2018-10-01T23:04:21Z","git_url":"git://github.com/mbacovsky/foreman.git","ssh_url":"git@github.com:mbacovsky/foreman.git","clone_url":"https://github.com/mbacovsky/foreman.git","svn_url":"https://github.com/mbacovsky/foreman","homepage":"http://theforeman.org","size":45080,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":2,"default_branch":"develop"}},"base":{"label":"theforeman:develop","ref":"develop","sha":"82d3d234aa5b54d9c0845380f1d3d00628ae3b95","user":{"login":"theforeman","id":1439844,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0Mzk4NDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1439844?v=4","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"repo":{"id":258750,"node_id":"MDEwOlJlcG9zaXRvcnkyNTg3NTA=","name":"foreman","full_name":"theforeman/foreman","private":false,"owner":{"login":"theforeman","id":1439844,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0Mzk4NDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1439844?v=4","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/theforeman/foreman","description":"an application that automates the lifecycle of servers ","fork":false,"url":"https://api.github.com/repos/theforeman/foreman","forks_url":"https://api.github.com/repos/theforeman/foreman/forks","keys_url":"https://api.github.com/repos/theforeman/foreman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theforeman/foreman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theforeman/foreman/teams","hooks_url":"https://api.github.com/repos/theforeman/foreman/hooks","issue_events_url":"https://api.github.com/repos/theforeman/foreman/issues/events{/number}","events_url":"https://api.github.com/repos/theforeman/foreman/events","assignees_url":"https://api.github.com/repos/theforeman/foreman/assignees{/user}","branches_url":"https://api.github.com/repos/theforeman/foreman/branches{/branch}","tags_url":"https://api.github.com/repos/theforeman/foreman/tags","blobs_url":"https://api.github.com/repos/theforeman/foreman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theforeman/foreman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theforeman/foreman/git/refs{/sha}","trees_url":"https://api.github.com/repos/theforeman/foreman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theforeman/foreman/statuses/{sha}","languages_url":"https://api.github.com/repos/theforeman/foreman/languages","stargazers_url":"https://api.github.com/repos/theforeman/foreman/stargazers","contributors_url":"https://api.github.com/repos/theforeman/foreman/contributors","subscribers_url":"https://api.github.com/repos/theforeman/foreman/subscribers","subscription_url":"https://api.github.com/repos/theforeman/foreman/subscription","commits_url":"https://api.github.com/repos/theforeman/foreman/commits{/sha}","git_commits_url":"https://api.github.com/repos/theforeman/foreman/git/commits{/sha}","comments_url":"https://api.github.com/repos/theforeman/foreman/comments{/number}","issue_comment_url":"https://api.github.com/repos/theforeman/foreman/issues/comments{/number}","contents_url":"https://api.github.com/repos/theforeman/foreman/contents/{+path}","compare_url":"https://api.github.com/repos/theforeman/foreman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theforeman/foreman/merges","archive_url":"https://api.github.com/repos/theforeman/foreman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theforeman/foreman/downloads","issues_url":"https://api.github.com/repos/theforeman/foreman/issues{/number}","pulls_url":"https://api.github.com/repos/theforeman/foreman/pulls{/number}","milestones_url":"https://api.github.com/repos/theforeman/foreman/milestones{/number}","notifications_url":"https://api.github.com/repos/theforeman/foreman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theforeman/foreman/labels{/name}","releases_url":"https://api.github.com/repos/theforeman/foreman/releases{/id}","deployments_url":"https://api.github.com/repos/theforeman/foreman/deployments","created_at":"2009-07-23T15:07:00Z","updated_at":"2018-10-01T11:49:24Z","pushed_at":"2018-10-01T23:09:49Z","git_url":"git://github.com/theforeman/foreman.git","ssh_url":"git@github.com:theforeman/foreman.git","clone_url":"https://github.com/theforeman/foreman.git","svn_url":"https://github.com/theforeman/foreman","homepage":"http://theforeman.org","size":81332,"stargazers_count":1510,"watchers_count":1510,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":754,"mirror_url":null,"archived":false,"open_issues_count":137,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":754,"open_issues":137,"watchers":1510,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/6100"},"html":{"href":"https://github.com/theforeman/foreman/pull/6100"},"issue":{"href":"https://api.github.com/repos/theforeman/foreman/issues/6100"},"comments":{"href":"https://api.github.com/repos/theforeman/foreman/issues/6100/comments"},"review_comments":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/6100/comments"},"review_comment":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/6100/commits"},"statuses":{"href":"https://api.github.com/repos/theforeman/foreman/statuses/89463ba4188e3324f716dcce7c2100f5168c7dc2"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"houndci-bot"}}