{"action":"created","comment":{"url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/comments/191905043","pull_request_review_id":124570026,"id":191905043,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MTkwNTA0Mw==","diff_hunk":"@@ -0,0 +1,73 @@\n+{% if SHOW_BY_ELECTION_CTA %}\n+    <h2>By-elections</h2>\n+    <h3>Upcoming elections</h3>\n+\n+    <table>\n+        <thead>\n+        <tr>\n+            <th>Election</th>\n+            <th>Area</th>\n+            <th>Candidates known</th>\n+            <th>Locked?</th>\n+        </tr>\n+        </thead>\n+        <tbody>\n+            {% for pee in upcoming_pees %}","path":"ynr/apps/elections/uk/templates/includes/by-election-ctas.html","position":15,"original_position":15,"commit_id":"3c6455bacb64af869b8e1518eebfc7264a108d87","original_commit_id":"3c6455bacb64af869b8e1518eebfc7264a108d87","user":{"login":"chris48s","id":6025893,"node_id":"MDQ6VXNlcjYwMjU4OTM=","avatar_url":"https://avatars1.githubusercontent.com/u/6025893?v=4","gravatar_id":"","url":"https://api.github.com/users/chris48s","html_url":"https://github.com/chris48s","followers_url":"https://api.github.com/users/chris48s/followers","following_url":"https://api.github.com/users/chris48s/following{/other_user}","gists_url":"https://api.github.com/users/chris48s/gists{/gist_id}","starred_url":"https://api.github.com/users/chris48s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris48s/subscriptions","organizations_url":"https://api.github.com/users/chris48s/orgs","repos_url":"https://api.github.com/users/chris48s/repos","events_url":"https://api.github.com/users/chris48s/events{/privacy}","received_events_url":"https://api.github.com/users/chris48s/received_events","type":"User","site_admin":false},"body":"I expect we're unlikely to hit this very often in real-world usage, but this could be made slightly more elegant by adding a case that hides whole table/headers in the case where `len(upcoming_pees) == 0` (and similarly below if `len(past_pees) == 0` ) instead of rendering a table with 0 rows.","created_at":"2018-05-30T20:05:16Z","updated_at":"2018-05-30T20:06:29Z","html_url":"https://github.com/DemocracyClub/yournextrepresentative/pull/526#discussion_r191905043","pull_request_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/526","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/comments/191905043"},"html":{"href":"https://github.com/DemocracyClub/yournextrepresentative/pull/526#discussion_r191905043"},"pull_request":{"href":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/526"}}},"pull_request":{"url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/526","id":191526067,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxNTI2MDY3","html_url":"https://github.com/DemocracyClub/yournextrepresentative/pull/526","diff_url":"https://github.com/DemocracyClub/yournextrepresentative/pull/526.diff","patch_url":"https://github.com/DemocracyClub/yournextrepresentative/pull/526.patch","issue_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/issues/526","number":526,"state":"open","locked":false,"title":"Upcoming elections homepage CTA","user":{"login":"symroe","id":242329,"node_id":"MDQ6VXNlcjI0MjMyOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/242329?v=4","gravatar_id":"","url":"https://api.github.com/users/symroe","html_url":"https://github.com/symroe","followers_url":"https://api.github.com/users/symroe/followers","following_url":"https://api.github.com/users/symroe/following{/other_user}","gists_url":"https://api.github.com/users/symroe/gists{/gist_id}","starred_url":"https://api.github.com/users/symroe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symroe/subscriptions","organizations_url":"https://api.github.com/users/symroe/orgs","repos_url":"https://api.github.com/users/symroe/repos","events_url":"https://api.github.com/users/symroe/events{/privacy}","received_events_url":"https://api.github.com/users/symroe/received_events","type":"User","site_admin":false},"body":"I thought a table was easier to read than a list, and it looks like this:\r\n\r\n![screenshot-2018-5-30 democracy club candidates](https://user-images.githubusercontent.com/242329/40736837-03829bae-6437-11e8-8f42-8c22f1f37909.png)\r\n\r\nI don't think it does a great job of asking / telling people what to do, but for those who know it will help. Do you think we should try to explain things more?","created_at":"2018-05-30T17:27:52Z","updated_at":"2018-05-30T20:06:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e43115812295f14c3b971220e63cc4dd2ccb186","assignee":{"login":"symroe","id":242329,"node_id":"MDQ6VXNlcjI0MjMyOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/242329?v=4","gravatar_id":"","url":"https://api.github.com/users/symroe","html_url":"https://github.com/symroe","followers_url":"https://api.github.com/users/symroe/followers","following_url":"https://api.github.com/users/symroe/following{/other_user}","gists_url":"https://api.github.com/users/symroe/gists{/gist_id}","starred_url":"https://api.github.com/users/symroe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symroe/subscriptions","organizations_url":"https://api.github.com/users/symroe/orgs","repos_url":"https://api.github.com/users/symroe/repos","events_url":"https://api.github.com/users/symroe/events{/privacy}","received_events_url":"https://api.github.com/users/symroe/received_events","type":"User","site_admin":false},"assignees":[{"login":"symroe","id":242329,"node_id":"MDQ6VXNlcjI0MjMyOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/242329?v=4","gravatar_id":"","url":"https://api.github.com/users/symroe","html_url":"https://github.com/symroe","followers_url":"https://api.github.com/users/symroe/followers","following_url":"https://api.github.com/users/symroe/following{/other_user}","gists_url":"https://api.github.com/users/symroe/gists{/gist_id}","starred_url":"https://api.github.com/users/symroe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symroe/subscriptions","organizations_url":"https://api.github.com/users/symroe/orgs","repos_url":"https://api.github.com/users/symroe/repos","events_url":"https://api.github.com/users/symroe/events{/privacy}","received_events_url":"https://api.github.com/users/symroe/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":588238247,"node_id":"MDU6TGFiZWw1ODgyMzgyNDc=","url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/labels/4%20-%20Awaiting%20Review","name":"4 - Awaiting Review","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/526/commits","review_comments_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/526/comments","review_comment_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/issues/526/comments","statuses_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/statuses/3c6455bacb64af869b8e1518eebfc7264a108d87","head":{"label":"DemocracyClub:upcoming-elections-homepage-cta","ref":"upcoming-elections-homepage-cta","sha":"3c6455bacb64af869b8e1518eebfc7264a108d87","user":{"login":"DemocracyClub","id":6901194,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5MDExOTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6901194?v=4","gravatar_id":"","url":"https://api.github.com/users/DemocracyClub","html_url":"https://github.com/DemocracyClub","followers_url":"https://api.github.com/users/DemocracyClub/followers","following_url":"https://api.github.com/users/DemocracyClub/following{/other_user}","gists_url":"https://api.github.com/users/DemocracyClub/gists{/gist_id}","starred_url":"https://api.github.com/users/DemocracyClub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DemocracyClub/subscriptions","organizations_url":"https://api.github.com/users/DemocracyClub/orgs","repos_url":"https://api.github.com/users/DemocracyClub/repos","events_url":"https://api.github.com/users/DemocracyClub/events{/privacy}","received_events_url":"https://api.github.com/users/DemocracyClub/received_events","type":"Organization","site_admin":false},"repo":{"id":50421953,"node_id":"MDEwOlJlcG9zaXRvcnk1MDQyMTk1Mw==","name":"yournextrepresentative","full_name":"DemocracyClub/yournextrepresentative","owner":{"login":"DemocracyClub","id":6901194,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5MDExOTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6901194?v=4","gravatar_id":"","url":"https://api.github.com/users/DemocracyClub","html_url":"https://github.com/DemocracyClub","followers_url":"https://api.github.com/users/DemocracyClub/followers","following_url":"https://api.github.com/users/DemocracyClub/following{/other_user}","gists_url":"https://api.github.com/users/DemocracyClub/gists{/gist_id}","starred_url":"https://api.github.com/users/DemocracyClub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DemocracyClub/subscriptions","organizations_url":"https://api.github.com/users/DemocracyClub/orgs","repos_url":"https://api.github.com/users/DemocracyClub/repos","events_url":"https://api.github.com/users/DemocracyClub/events{/privacy}","received_events_url":"https://api.github.com/users/DemocracyClub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DemocracyClub/yournextrepresentative","description":"A website for crowd-sourcing structured election candidate data","fork":false,"url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative","forks_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/forks","keys_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/teams","hooks_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/hooks","issue_events_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/issues/events{/number}","events_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/events","assignees_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/assignees{/user}","branches_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/branches{/branch}","tags_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/tags","blobs_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/git/refs{/sha}","trees_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/statuses/{sha}","languages_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/languages","stargazers_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/stargazers","contributors_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/contributors","subscribers_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/subscribers","subscription_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/subscription","commits_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/commits{/sha}","git_commits_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/git/commits{/sha}","comments_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/comments{/number}","issue_comment_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/issues/comments{/number}","contents_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/contents/{+path}","compare_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/merges","archive_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/downloads","issues_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/issues{/number}","pulls_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls{/number}","milestones_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/milestones{/number}","notifications_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/labels{/name}","releases_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/releases{/id}","deployments_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/deployments","created_at":"2016-01-26T10:37:25Z","updated_at":"2018-05-08T14:32:31Z","pushed_at":"2018-05-30T17:27:52Z","git_url":"git://github.com/DemocracyClub/yournextrepresentative.git","ssh_url":"git@github.com:DemocracyClub/yournextrepresentative.git","clone_url":"https://github.com/DemocracyClub/yournextrepresentative.git","svn_url":"https://github.com/DemocracyClub/yournextrepresentative","homepage":"https://candidates.democracyclub.org.uk","size":8459,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":121,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":14,"open_issues":121,"watchers":9,"default_branch":"master"}},"base":{"label":"DemocracyClub:master","ref":"master","sha":"19004a8c4e3f0e4d2c72513d798278612d028fd7","user":{"login":"DemocracyClub","id":6901194,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5MDExOTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6901194?v=4","gravatar_id":"","url":"https://api.github.com/users/DemocracyClub","html_url":"https://github.com/DemocracyClub","followers_url":"https://api.github.com/users/DemocracyClub/followers","following_url":"https://api.github.com/users/DemocracyClub/following{/other_user}","gists_url":"https://api.github.com/users/DemocracyClub/gists{/gist_id}","starred_url":"https://api.github.com/users/DemocracyClub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DemocracyClub/subscriptions","organizations_url":"https://api.github.com/users/DemocracyClub/orgs","repos_url":"https://api.github.com/users/DemocracyClub/repos","events_url":"https://api.github.com/users/DemocracyClub/events{/privacy}","received_events_url":"https://api.github.com/users/DemocracyClub/received_events","type":"Organization","site_admin":false},"repo":{"id":50421953,"node_id":"MDEwOlJlcG9zaXRvcnk1MDQyMTk1Mw==","name":"yournextrepresentative","full_name":"DemocracyClub/yournextrepresentative","owner":{"login":"DemocracyClub","id":6901194,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5MDExOTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6901194?v=4","gravatar_id":"","url":"https://api.github.com/users/DemocracyClub","html_url":"https://github.com/DemocracyClub","followers_url":"https://api.github.com/users/DemocracyClub/followers","following_url":"https://api.github.com/users/DemocracyClub/following{/other_user}","gists_url":"https://api.github.com/users/DemocracyClub/gists{/gist_id}","starred_url":"https://api.github.com/users/DemocracyClub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DemocracyClub/subscriptions","organizations_url":"https://api.github.com/users/DemocracyClub/orgs","repos_url":"https://api.github.com/users/DemocracyClub/repos","events_url":"https://api.github.com/users/DemocracyClub/events{/privacy}","received_events_url":"https://api.github.com/users/DemocracyClub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DemocracyClub/yournextrepresentative","description":"A website for crowd-sourcing structured election candidate data","fork":false,"url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative","forks_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/forks","keys_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/teams","hooks_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/hooks","issue_events_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/issues/events{/number}","events_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/events","assignees_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/assignees{/user}","branches_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/branches{/branch}","tags_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/tags","blobs_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/git/refs{/sha}","trees_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/statuses/{sha}","languages_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/languages","stargazers_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/stargazers","contributors_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/contributors","subscribers_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/subscribers","subscription_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/subscription","commits_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/commits{/sha}","git_commits_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/git/commits{/sha}","comments_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/comments{/number}","issue_comment_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/issues/comments{/number}","contents_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/contents/{+path}","compare_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/merges","archive_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/downloads","issues_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/issues{/number}","pulls_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls{/number}","milestones_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/milestones{/number}","notifications_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/labels{/name}","releases_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/releases{/id}","deployments_url":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/deployments","created_at":"2016-01-26T10:37:25Z","updated_at":"2018-05-08T14:32:31Z","pushed_at":"2018-05-30T17:27:52Z","git_url":"git://github.com/DemocracyClub/yournextrepresentative.git","ssh_url":"git@github.com:DemocracyClub/yournextrepresentative.git","clone_url":"https://github.com/DemocracyClub/yournextrepresentative.git","svn_url":"https://github.com/DemocracyClub/yournextrepresentative","homepage":"https://candidates.democracyclub.org.uk","size":8459,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":121,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":14,"open_issues":121,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/526"},"html":{"href":"https://github.com/DemocracyClub/yournextrepresentative/pull/526"},"issue":{"href":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/issues/526"},"comments":{"href":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/issues/526/comments"},"review_comments":{"href":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/526/comments"},"review_comment":{"href":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/pulls/526/commits"},"statuses":{"href":"https://api.github.com/repos/DemocracyClub/yournextrepresentative/statuses/3c6455bacb64af869b8e1518eebfc7264a108d87"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"chris48s"}}