{"action":"opened","number":191,"pull_request":{"url":"https://api.github.com/repos/guardian/atom-workshop/pulls/191","id":158059344,"html_url":"https://github.com/guardian/atom-workshop/pull/191","diff_url":"https://github.com/guardian/atom-workshop/pull/191.diff","patch_url":"https://github.com/guardian/atom-workshop/pull/191.patch","issue_url":"https://api.github.com/repos/guardian/atom-workshop/issues/191","number":191,"state":"open","locked":false,"title":"Add Commons Division atoms","user":{"login":"tomrf1","id":1513454,"avatar_url":"https://avatars3.githubusercontent.com/u/1513454?v=4","gravatar_id":"","url":"https://api.github.com/users/tomrf1","html_url":"https://github.com/tomrf1","followers_url":"https://api.github.com/users/tomrf1/followers","following_url":"https://api.github.com/users/tomrf1/following{/other_user}","gists_url":"https://api.github.com/users/tomrf1/gists{/gist_id}","starred_url":"https://api.github.com/users/tomrf1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomrf1/subscriptions","organizations_url":"https://api.github.com/users/tomrf1/orgs","repos_url":"https://api.github.com/users/tomrf1/repos","events_url":"https://api.github.com/users/tomrf1/events{/privacy}","received_events_url":"https://api.github.com/users/tomrf1/received_events","type":"User","site_admin":false},"body":"1. Selecting this type from the Create Atom page directs to `/commonsdivisions`. This page lists the latest divisions from the data.parliament api. For each division it displays either a \"Create atom\" button or an \"Edit atom\" link (depending on whether or not the atom exists yet).\r\n2. The editor page for this atom only allows the user to change the description field.\r\n3. The atoms are stored in the general atom-workshop dynamo tables, though the id is generated differently to allow lookups based on the parliament ID (`division-<parliamentId>`).\r\n\r\n#### Create atom page:\r\n<img width=\"572\" alt=\"picture 15\" src=\"https://user-images.githubusercontent.com/1513454/33934897-1540c2ea-dff2-11e7-8981-85b62aeb0676.png\">\r\n\r\n#### Edit atom page:\r\n<img width=\"558\" alt=\"picture 16\" src=\"https://user-images.githubusercontent.com/1513454/33934898-1559065c-dff2-11e7-9cf0-06eb947c138e.png\">\r\n","created_at":"2017-12-13T10:47:44Z","updated_at":"2017-12-13T10:47:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/guardian/atom-workshop/pulls/191/commits","review_comments_url":"https://api.github.com/repos/guardian/atom-workshop/pulls/191/comments","review_comment_url":"https://api.github.com/repos/guardian/atom-workshop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/guardian/atom-workshop/issues/191/comments","statuses_url":"https://api.github.com/repos/guardian/atom-workshop/statuses/02e514393000545da0baa030bdd37a2a491da0c7","head":{"label":"guardian:divisions","ref":"divisions","sha":"02e514393000545da0baa030bdd37a2a491da0c7","user":{"login":"guardian","id":164318,"avatar_url":"https://avatars0.githubusercontent.com/u/164318?v=4","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"repo":{"id":78652637,"name":"atom-workshop","full_name":"guardian/atom-workshop","owner":{"login":"guardian","id":164318,"avatar_url":"https://avatars0.githubusercontent.com/u/164318?v=4","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/guardian/atom-workshop","description":"Create and edit atoms","fork":false,"url":"https://api.github.com/repos/guardian/atom-workshop","forks_url":"https://api.github.com/repos/guardian/atom-workshop/forks","keys_url":"https://api.github.com/repos/guardian/atom-workshop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guardian/atom-workshop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guardian/atom-workshop/teams","hooks_url":"https://api.github.com/repos/guardian/atom-workshop/hooks","issue_events_url":"https://api.github.com/repos/guardian/atom-workshop/issues/events{/number}","events_url":"https://api.github.com/repos/guardian/atom-workshop/events","assignees_url":"https://api.github.com/repos/guardian/atom-workshop/assignees{/user}","branches_url":"https://api.github.com/repos/guardian/atom-workshop/branches{/branch}","tags_url":"https://api.github.com/repos/guardian/atom-workshop/tags","blobs_url":"https://api.github.com/repos/guardian/atom-workshop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guardian/atom-workshop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guardian/atom-workshop/git/refs{/sha}","trees_url":"https://api.github.com/repos/guardian/atom-workshop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guardian/atom-workshop/statuses/{sha}","languages_url":"https://api.github.com/repos/guardian/atom-workshop/languages","stargazers_url":"https://api.github.com/repos/guardian/atom-workshop/stargazers","contributors_url":"https://api.github.com/repos/guardian/atom-workshop/contributors","subscribers_url":"https://api.github.com/repos/guardian/atom-workshop/subscribers","subscription_url":"https://api.github.com/repos/guardian/atom-workshop/subscription","commits_url":"https://api.github.com/repos/guardian/atom-workshop/commits{/sha}","git_commits_url":"https://api.github.com/repos/guardian/atom-workshop/git/commits{/sha}","comments_url":"https://api.github.com/repos/guardian/atom-workshop/comments{/number}","issue_comment_url":"https://api.github.com/repos/guardian/atom-workshop/issues/comments{/number}","contents_url":"https://api.github.com/repos/guardian/atom-workshop/contents/{+path}","compare_url":"https://api.github.com/repos/guardian/atom-workshop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guardian/atom-workshop/merges","archive_url":"https://api.github.com/repos/guardian/atom-workshop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guardian/atom-workshop/downloads","issues_url":"https://api.github.com/repos/guardian/atom-workshop/issues{/number}","pulls_url":"https://api.github.com/repos/guardian/atom-workshop/pulls{/number}","milestones_url":"https://api.github.com/repos/guardian/atom-workshop/milestones{/number}","notifications_url":"https://api.github.com/repos/guardian/atom-workshop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guardian/atom-workshop/labels{/name}","releases_url":"https://api.github.com/repos/guardian/atom-workshop/releases{/id}","deployments_url":"https://api.github.com/repos/guardian/atom-workshop/deployments","created_at":"2017-01-11T15:34:52Z","updated_at":"2017-02-03T16:07:50Z","pushed_at":"2017-12-13T10:18:09Z","git_url":"git://github.com/guardian/atom-workshop.git","ssh_url":"git@github.com:guardian/atom-workshop.git","clone_url":"https://github.com/guardian/atom-workshop.git","svn_url":"https://github.com/guardian/atom-workshop","homepage":"https://atomworkshop.gutools.co.uk","size":1138,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":1,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"guardian:master","ref":"master","sha":"6d8e20e7d039ec5aa02b82527eda462f067f8f53","user":{"login":"guardian","id":164318,"avatar_url":"https://avatars0.githubusercontent.com/u/164318?v=4","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"repo":{"id":78652637,"name":"atom-workshop","full_name":"guardian/atom-workshop","owner":{"login":"guardian","id":164318,"avatar_url":"https://avatars0.githubusercontent.com/u/164318?v=4","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/guardian/atom-workshop","description":"Create and edit atoms","fork":false,"url":"https://api.github.com/repos/guardian/atom-workshop","forks_url":"https://api.github.com/repos/guardian/atom-workshop/forks","keys_url":"https://api.github.com/repos/guardian/atom-workshop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guardian/atom-workshop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guardian/atom-workshop/teams","hooks_url":"https://api.github.com/repos/guardian/atom-workshop/hooks","issue_events_url":"https://api.github.com/repos/guardian/atom-workshop/issues/events{/number}","events_url":"https://api.github.com/repos/guardian/atom-workshop/events","assignees_url":"https://api.github.com/repos/guardian/atom-workshop/assignees{/user}","branches_url":"https://api.github.com/repos/guardian/atom-workshop/branches{/branch}","tags_url":"https://api.github.com/repos/guardian/atom-workshop/tags","blobs_url":"https://api.github.com/repos/guardian/atom-workshop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guardian/atom-workshop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guardian/atom-workshop/git/refs{/sha}","trees_url":"https://api.github.com/repos/guardian/atom-workshop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guardian/atom-workshop/statuses/{sha}","languages_url":"https://api.github.com/repos/guardian/atom-workshop/languages","stargazers_url":"https://api.github.com/repos/guardian/atom-workshop/stargazers","contributors_url":"https://api.github.com/repos/guardian/atom-workshop/contributors","subscribers_url":"https://api.github.com/repos/guardian/atom-workshop/subscribers","subscription_url":"https://api.github.com/repos/guardian/atom-workshop/subscription","commits_url":"https://api.github.com/repos/guardian/atom-workshop/commits{/sha}","git_commits_url":"https://api.github.com/repos/guardian/atom-workshop/git/commits{/sha}","comments_url":"https://api.github.com/repos/guardian/atom-workshop/comments{/number}","issue_comment_url":"https://api.github.com/repos/guardian/atom-workshop/issues/comments{/number}","contents_url":"https://api.github.com/repos/guardian/atom-workshop/contents/{+path}","compare_url":"https://api.github.com/repos/guardian/atom-workshop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guardian/atom-workshop/merges","archive_url":"https://api.github.com/repos/guardian/atom-workshop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guardian/atom-workshop/downloads","issues_url":"https://api.github.com/repos/guardian/atom-workshop/issues{/number}","pulls_url":"https://api.github.com/repos/guardian/atom-workshop/pulls{/number}","milestones_url":"https://api.github.com/repos/guardian/atom-workshop/milestones{/number}","notifications_url":"https://api.github.com/repos/guardian/atom-workshop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guardian/atom-workshop/labels{/name}","releases_url":"https://api.github.com/repos/guardian/atom-workshop/releases{/id}","deployments_url":"https://api.github.com/repos/guardian/atom-workshop/deployments","created_at":"2017-01-11T15:34:52Z","updated_at":"2017-02-03T16:07:50Z","pushed_at":"2017-12-13T10:18:09Z","git_url":"git://github.com/guardian/atom-workshop.git","ssh_url":"git@github.com:guardian/atom-workshop.git","clone_url":"https://github.com/guardian/atom-workshop.git","svn_url":"https://github.com/guardian/atom-workshop","homepage":"https://atomworkshop.gutools.co.uk","size":1138,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":1,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/guardian/atom-workshop/pulls/191"},"html":{"href":"https://github.com/guardian/atom-workshop/pull/191"},"issue":{"href":"https://api.github.com/repos/guardian/atom-workshop/issues/191"},"comments":{"href":"https://api.github.com/repos/guardian/atom-workshop/issues/191/comments"},"review_comments":{"href":"https://api.github.com/repos/guardian/atom-workshop/pulls/191/comments"},"review_comment":{"href":"https://api.github.com/repos/guardian/atom-workshop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/guardian/atom-workshop/pulls/191/commits"},"statuses":{"href":"https://api.github.com/repos/guardian/atom-workshop/statuses/02e514393000545da0baa030bdd37a2a491da0c7"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":5,"additions":516,"deletions":10,"changed_files":18}}
{"actor":{"display_login":"tomrf1"}}