{"action":"created","comment":{"url":"https://api.github.com/repos/everypolitician/rebuilder/pulls/comments/99843666","pull_request_review_id":20530666,"id":99843666,"diff_hunk":"@@ -76,7 +76,7 @@ def perform(country_slug, legislature_slug, source = nil)\n     end\n     # Only use last 64k of output\n     output = output[-64_000..-1] || output\n-    title = \"#{country.name} (#{legislature.name}): refresh data\"\n+    title = \"#{country.name} (#{legislature.name}#{source ? \":#{source}\" : ''}): refresh data\"\n     body = \"Automated data refresh for #{country.name} - #{legislature.name}\" \\","path":"app.rb","position":6,"original_position":6,"commit_id":"9de614b5f13102e5357e8933e79d13ec741b4b0a","original_commit_id":"9de614b5f13102e5357e8933e79d13ec741b4b0a","user":{"login":"tmtmtmtm","id":57483,"avatar_url":"https://avatars.githubusercontent.com/u/57483?v=3","gravatar_id":"","url":"https://api.github.com/users/tmtmtmtm","html_url":"https://github.com/tmtmtmtm","followers_url":"https://api.github.com/users/tmtmtmtm/followers","following_url":"https://api.github.com/users/tmtmtmtm/following{/other_user}","gists_url":"https://api.github.com/users/tmtmtmtm/gists{/gist_id}","starred_url":"https://api.github.com/users/tmtmtmtm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmtmtmtm/subscriptions","organizations_url":"https://api.github.com/users/tmtmtmtm/orgs","repos_url":"https://api.github.com/users/tmtmtmtm/repos","events_url":"https://api.github.com/users/tmtmtmtm/events{/privacy}","received_events_url":"https://api.github.com/users/tmtmtmtm/received_events","type":"User","site_admin":false},"body":"I think we’ll want to show this in the body text immediately below as well, so it’s probably better to pull the country/legislature/source combo into a variable and then interpolate it into both title and body (I don't think it matters that it's a slight change to the format we use in the body)","created_at":"2017-02-07T15:14:14Z","updated_at":"2017-02-07T15:14:21Z","html_url":"https://github.com/everypolitician/rebuilder/pull/61#discussion_r99843666","pull_request_url":"https://api.github.com/repos/everypolitician/rebuilder/pulls/61","_links":{"self":{"href":"https://api.github.com/repos/everypolitician/rebuilder/pulls/comments/99843666"},"html":{"href":"https://github.com/everypolitician/rebuilder/pull/61#discussion_r99843666"},"pull_request":{"href":"https://api.github.com/repos/everypolitician/rebuilder/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/everypolitician/rebuilder/pulls/61","id":104997120,"html_url":"https://github.com/everypolitician/rebuilder/pull/61","diff_url":"https://github.com/everypolitician/rebuilder/pull/61.diff","patch_url":"https://github.com/everypolitician/rebuilder/pull/61.patch","issue_url":"https://api.github.com/repos/everypolitician/rebuilder/issues/61","number":61,"state":"open","locked":false,"title":"Add source name to generated pull request's title","user":{"login":"chrismytton","id":22996,"avatar_url":"https://avatars.githubusercontent.com/u/22996?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismytton","html_url":"https://github.com/chrismytton","followers_url":"https://api.github.com/users/chrismytton/followers","following_url":"https://api.github.com/users/chrismytton/following{/other_user}","gists_url":"https://api.github.com/users/chrismytton/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismytton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismytton/subscriptions","organizations_url":"https://api.github.com/users/chrismytton/orgs","repos_url":"https://api.github.com/users/chrismytton/repos","events_url":"https://api.github.com/users/chrismytton/events{/privacy}","received_events_url":"https://api.github.com/users/chrismytton/received_events","type":"User","site_admin":false},"body":"⚠️  Not ready to be merged yet.\r\n\r\n- [ ] Write some tests for this new functionality to ensure it works as expected.\r\n\r\nPart of https://github.com/everypolitician/rebuilder/issues/59","created_at":"2017-02-07T12:41:02Z","updated_at":"2017-02-07T15:14:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0827c88e575c4f03ddcc70cd4dcf9bf68ed11379","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/everypolitician/rebuilder/pulls/61/commits","review_comments_url":"https://api.github.com/repos/everypolitician/rebuilder/pulls/61/comments","review_comment_url":"https://api.github.com/repos/everypolitician/rebuilder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/everypolitician/rebuilder/issues/61/comments","statuses_url":"https://api.github.com/repos/everypolitician/rebuilder/statuses/9de614b5f13102e5357e8933e79d13ec741b4b0a","head":{"label":"everypolitician:59-include-source-name-in-pr-title","ref":"59-include-source-name-in-pr-title","sha":"9de614b5f13102e5357e8933e79d13ec741b4b0a","user":{"login":"everypolitician","id":12497298,"avatar_url":"https://avatars.githubusercontent.com/u/12497298?v=3","gravatar_id":"","url":"https://api.github.com/users/everypolitician","html_url":"https://github.com/everypolitician","followers_url":"https://api.github.com/users/everypolitician/followers","following_url":"https://api.github.com/users/everypolitician/following{/other_user}","gists_url":"https://api.github.com/users/everypolitician/gists{/gist_id}","starred_url":"https://api.github.com/users/everypolitician/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everypolitician/subscriptions","organizations_url":"https://api.github.com/users/everypolitician/orgs","repos_url":"https://api.github.com/users/everypolitician/repos","events_url":"https://api.github.com/users/everypolitician/events{/privacy}","received_events_url":"https://api.github.com/users/everypolitician/received_events","type":"Organization","site_admin":false},"repo":{"id":44189994,"name":"rebuilder","full_name":"everypolitician/rebuilder","owner":{"login":"everypolitician","id":12497298,"avatar_url":"https://avatars.githubusercontent.com/u/12497298?v=3","gravatar_id":"","url":"https://api.github.com/users/everypolitician","html_url":"https://github.com/everypolitician","followers_url":"https://api.github.com/users/everypolitician/followers","following_url":"https://api.github.com/users/everypolitician/following{/other_user}","gists_url":"https://api.github.com/users/everypolitician/gists{/gist_id}","starred_url":"https://api.github.com/users/everypolitician/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everypolitician/subscriptions","organizations_url":"https://api.github.com/users/everypolitician/orgs","repos_url":"https://api.github.com/users/everypolitician/repos","events_url":"https://api.github.com/users/everypolitician/events{/privacy}","received_events_url":"https://api.github.com/users/everypolitician/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/everypolitician/rebuilder","description":"Generate pull requests in everypolitician-data by rebuilding a specific legislature's data from source","fork":false,"url":"https://api.github.com/repos/everypolitician/rebuilder","forks_url":"https://api.github.com/repos/everypolitician/rebuilder/forks","keys_url":"https://api.github.com/repos/everypolitician/rebuilder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/everypolitician/rebuilder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/everypolitician/rebuilder/teams","hooks_url":"https://api.github.com/repos/everypolitician/rebuilder/hooks","issue_events_url":"https://api.github.com/repos/everypolitician/rebuilder/issues/events{/number}","events_url":"https://api.github.com/repos/everypolitician/rebuilder/events","assignees_url":"https://api.github.com/repos/everypolitician/rebuilder/assignees{/user}","branches_url":"https://api.github.com/repos/everypolitician/rebuilder/branches{/branch}","tags_url":"https://api.github.com/repos/everypolitician/rebuilder/tags","blobs_url":"https://api.github.com/repos/everypolitician/rebuilder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/everypolitician/rebuilder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/everypolitician/rebuilder/git/refs{/sha}","trees_url":"https://api.github.com/repos/everypolitician/rebuilder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/everypolitician/rebuilder/statuses/{sha}","languages_url":"https://api.github.com/repos/everypolitician/rebuilder/languages","stargazers_url":"https://api.github.com/repos/everypolitician/rebuilder/stargazers","contributors_url":"https://api.github.com/repos/everypolitician/rebuilder/contributors","subscribers_url":"https://api.github.com/repos/everypolitician/rebuilder/subscribers","subscription_url":"https://api.github.com/repos/everypolitician/rebuilder/subscription","commits_url":"https://api.github.com/repos/everypolitician/rebuilder/commits{/sha}","git_commits_url":"https://api.github.com/repos/everypolitician/rebuilder/git/commits{/sha}","comments_url":"https://api.github.com/repos/everypolitician/rebuilder/comments{/number}","issue_comment_url":"https://api.github.com/repos/everypolitician/rebuilder/issues/comments{/number}","contents_url":"https://api.github.com/repos/everypolitician/rebuilder/contents/{+path}","compare_url":"https://api.github.com/repos/everypolitician/rebuilder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/everypolitician/rebuilder/merges","archive_url":"https://api.github.com/repos/everypolitician/rebuilder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/everypolitician/rebuilder/downloads","issues_url":"https://api.github.com/repos/everypolitician/rebuilder/issues{/number}","pulls_url":"https://api.github.com/repos/everypolitician/rebuilder/pulls{/number}","milestones_url":"https://api.github.com/repos/everypolitician/rebuilder/milestones{/number}","notifications_url":"https://api.github.com/repos/everypolitician/rebuilder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/everypolitician/rebuilder/labels{/name}","releases_url":"https://api.github.com/repos/everypolitician/rebuilder/releases{/id}","deployments_url":"https://api.github.com/repos/everypolitician/rebuilder/deployments","created_at":"2015-10-13T16:31:58Z","updated_at":"2016-11-01T09:40:22Z","pushed_at":"2017-02-07T12:41:03Z","git_url":"git://github.com/everypolitician/rebuilder.git","ssh_url":"git@github.com:everypolitician/rebuilder.git","clone_url":"https://github.com/everypolitician/rebuilder.git","svn_url":"https://github.com/everypolitician/rebuilder","homepage":"","size":116,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":16,"forks":1,"open_issues":16,"watchers":0,"default_branch":"master"}},"base":{"label":"everypolitician:master","ref":"master","sha":"161dc4ae002bace27bbc97370235c6bcca5e6106","user":{"login":"everypolitician","id":12497298,"avatar_url":"https://avatars.githubusercontent.com/u/12497298?v=3","gravatar_id":"","url":"https://api.github.com/users/everypolitician","html_url":"https://github.com/everypolitician","followers_url":"https://api.github.com/users/everypolitician/followers","following_url":"https://api.github.com/users/everypolitician/following{/other_user}","gists_url":"https://api.github.com/users/everypolitician/gists{/gist_id}","starred_url":"https://api.github.com/users/everypolitician/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everypolitician/subscriptions","organizations_url":"https://api.github.com/users/everypolitician/orgs","repos_url":"https://api.github.com/users/everypolitician/repos","events_url":"https://api.github.com/users/everypolitician/events{/privacy}","received_events_url":"https://api.github.com/users/everypolitician/received_events","type":"Organization","site_admin":false},"repo":{"id":44189994,"name":"rebuilder","full_name":"everypolitician/rebuilder","owner":{"login":"everypolitician","id":12497298,"avatar_url":"https://avatars.githubusercontent.com/u/12497298?v=3","gravatar_id":"","url":"https://api.github.com/users/everypolitician","html_url":"https://github.com/everypolitician","followers_url":"https://api.github.com/users/everypolitician/followers","following_url":"https://api.github.com/users/everypolitician/following{/other_user}","gists_url":"https://api.github.com/users/everypolitician/gists{/gist_id}","starred_url":"https://api.github.com/users/everypolitician/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everypolitician/subscriptions","organizations_url":"https://api.github.com/users/everypolitician/orgs","repos_url":"https://api.github.com/users/everypolitician/repos","events_url":"https://api.github.com/users/everypolitician/events{/privacy}","received_events_url":"https://api.github.com/users/everypolitician/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/everypolitician/rebuilder","description":"Generate pull requests in everypolitician-data by rebuilding a specific legislature's data from source","fork":false,"url":"https://api.github.com/repos/everypolitician/rebuilder","forks_url":"https://api.github.com/repos/everypolitician/rebuilder/forks","keys_url":"https://api.github.com/repos/everypolitician/rebuilder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/everypolitician/rebuilder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/everypolitician/rebuilder/teams","hooks_url":"https://api.github.com/repos/everypolitician/rebuilder/hooks","issue_events_url":"https://api.github.com/repos/everypolitician/rebuilder/issues/events{/number}","events_url":"https://api.github.com/repos/everypolitician/rebuilder/events","assignees_url":"https://api.github.com/repos/everypolitician/rebuilder/assignees{/user}","branches_url":"https://api.github.com/repos/everypolitician/rebuilder/branches{/branch}","tags_url":"https://api.github.com/repos/everypolitician/rebuilder/tags","blobs_url":"https://api.github.com/repos/everypolitician/rebuilder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/everypolitician/rebuilder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/everypolitician/rebuilder/git/refs{/sha}","trees_url":"https://api.github.com/repos/everypolitician/rebuilder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/everypolitician/rebuilder/statuses/{sha}","languages_url":"https://api.github.com/repos/everypolitician/rebuilder/languages","stargazers_url":"https://api.github.com/repos/everypolitician/rebuilder/stargazers","contributors_url":"https://api.github.com/repos/everypolitician/rebuilder/contributors","subscribers_url":"https://api.github.com/repos/everypolitician/rebuilder/subscribers","subscription_url":"https://api.github.com/repos/everypolitician/rebuilder/subscription","commits_url":"https://api.github.com/repos/everypolitician/rebuilder/commits{/sha}","git_commits_url":"https://api.github.com/repos/everypolitician/rebuilder/git/commits{/sha}","comments_url":"https://api.github.com/repos/everypolitician/rebuilder/comments{/number}","issue_comment_url":"https://api.github.com/repos/everypolitician/rebuilder/issues/comments{/number}","contents_url":"https://api.github.com/repos/everypolitician/rebuilder/contents/{+path}","compare_url":"https://api.github.com/repos/everypolitician/rebuilder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/everypolitician/rebuilder/merges","archive_url":"https://api.github.com/repos/everypolitician/rebuilder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/everypolitician/rebuilder/downloads","issues_url":"https://api.github.com/repos/everypolitician/rebuilder/issues{/number}","pulls_url":"https://api.github.com/repos/everypolitician/rebuilder/pulls{/number}","milestones_url":"https://api.github.com/repos/everypolitician/rebuilder/milestones{/number}","notifications_url":"https://api.github.com/repos/everypolitician/rebuilder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/everypolitician/rebuilder/labels{/name}","releases_url":"https://api.github.com/repos/everypolitician/rebuilder/releases{/id}","deployments_url":"https://api.github.com/repos/everypolitician/rebuilder/deployments","created_at":"2015-10-13T16:31:58Z","updated_at":"2016-11-01T09:40:22Z","pushed_at":"2017-02-07T12:41:03Z","git_url":"git://github.com/everypolitician/rebuilder.git","ssh_url":"git@github.com:everypolitician/rebuilder.git","clone_url":"https://github.com/everypolitician/rebuilder.git","svn_url":"https://github.com/everypolitician/rebuilder","homepage":"","size":116,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":16,"forks":1,"open_issues":16,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/everypolitician/rebuilder/pulls/61"},"html":{"href":"https://github.com/everypolitician/rebuilder/pull/61"},"issue":{"href":"https://api.github.com/repos/everypolitician/rebuilder/issues/61"},"comments":{"href":"https://api.github.com/repos/everypolitician/rebuilder/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/everypolitician/rebuilder/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/everypolitician/rebuilder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/everypolitician/rebuilder/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/everypolitician/rebuilder/statuses/9de614b5f13102e5357e8933e79d13ec741b4b0a"}}}}
{"actor":{"display_login":"tmtmtmtm"}}