{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/alphagov/email-alert-frontend/pulls/1","id":33557261,"html_url":"https://github.com/alphagov/email-alert-frontend/pull/1","diff_url":"https://github.com/alphagov/email-alert-frontend/pull/1.diff","patch_url":"https://github.com/alphagov/email-alert-frontend/pull/1.patch","issue_url":"https://api.github.com/repos/alphagov/email-alert-frontend/issues/1","number":1,"state":"closed","locked":false,"title":"Render signup pages","user":{"login":"tommyp","id":449004,"avatar_url":"https://avatars.githubusercontent.com/u/449004?v=3","gravatar_id":"","url":"https://api.github.com/users/tommyp","html_url":"https://github.com/tommyp","followers_url":"https://api.github.com/users/tommyp/followers","following_url":"https://api.github.com/users/tommyp/following{/other_user}","gists_url":"https://api.github.com/users/tommyp/gists{/gist_id}","starred_url":"https://api.github.com/users/tommyp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tommyp/subscriptions","organizations_url":"https://api.github.com/users/tommyp/orgs","repos_url":"https://api.github.com/users/tommyp/repos","events_url":"https://api.github.com/users/tommyp/events{/privacy}","received_events_url":"https://api.github.com/users/tommyp/received_events","type":"User","site_admin":false},"body":"In order to allow users to sign up to alerts from govdelivery, EmailAlertFrontend needs to render signup pages which provide a link to a govdelivery URL which is generated from a content item. The details part of the content item is formatted like:\r\n\r\n```\r\n  \"details\": {\r\n    \"breadcrumbs\": [\r\n      {\r\n        \"title\": \"Employment\",\r\n        \"link\": \"https://www.gov.uk/government/policies/employment\"\r\n      }\r\n    ],\r\n    \"tags\": {\r\n      \"policy\": [\r\n        \"employment\"\r\n      ]\r\n    }\r\n  },\r\n```\r\n\r\n`breadcrumbs` is an array of parent links and `tags` is a hash with each item in the hash being an array of the tag values.\r\n\r\nThis PR also does a bunch of setup things such as adding `govuk` gems, `jenkins.sh` and `jenkins_branches.sh` along with setting up RSpec and Cucumber.\r\n\r\nScreenshot:\r\n\r\n![screen shot 2015-04-17 at 16 50 08](https://cloud.githubusercontent.com/assets/449004/7205538/fe4ee1de-e521-11e4-9188-7989fa4d3178.png)\r\n\r\nRequires https://github.com/alphagov/govuk-content-schemas/pull/42 to be merged before tests will pass.\r\n\r\n- [x] merge https://github.com/alphagov/govuk-content-schemas/pull/42\r\n\r\n","created_at":"2015-04-17T15:52:48Z","updated_at":"2015-04-23T15:16:15Z","closed_at":"2015-04-23T15:16:15Z","merged_at":"2015-04-23T15:16:15Z","merge_commit_sha":"b1747a154d4462b30d05707b5792e5b70b6f4057","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/email-alert-frontend/pulls/1/commits","review_comments_url":"https://api.github.com/repos/alphagov/email-alert-frontend/pulls/1/comments","review_comment_url":"https://api.github.com/repos/alphagov/email-alert-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/email-alert-frontend/issues/1/comments","statuses_url":"https://api.github.com/repos/alphagov/email-alert-frontend/statuses/f94baae8ca7af8732d6dd68c323459bdcf821ee9","head":{"label":"alphagov:render-signup-pages","ref":"render-signup-pages","sha":"f94baae8ca7af8732d6dd68c323459bdcf821ee9","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":30589536,"name":"email-alert-frontend","full_name":"alphagov/email-alert-frontend","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/email-alert-frontend","description":"","fork":false,"url":"https://api.github.com/repos/alphagov/email-alert-frontend","forks_url":"https://api.github.com/repos/alphagov/email-alert-frontend/forks","keys_url":"https://api.github.com/repos/alphagov/email-alert-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/email-alert-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/email-alert-frontend/teams","hooks_url":"https://api.github.com/repos/alphagov/email-alert-frontend/hooks","issue_events_url":"https://api.github.com/repos/alphagov/email-alert-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/email-alert-frontend/events","assignees_url":"https://api.github.com/repos/alphagov/email-alert-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/email-alert-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/email-alert-frontend/tags","blobs_url":"https://api.github.com/repos/alphagov/email-alert-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/email-alert-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/email-alert-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/email-alert-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/email-alert-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/email-alert-frontend/languages","stargazers_url":"https://api.github.com/repos/alphagov/email-alert-frontend/stargazers","contributors_url":"https://api.github.com/repos/alphagov/email-alert-frontend/contributors","subscribers_url":"https://api.github.com/repos/alphagov/email-alert-frontend/subscribers","subscription_url":"https://api.github.com/repos/alphagov/email-alert-frontend/subscription","commits_url":"https://api.github.com/repos/alphagov/email-alert-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/email-alert-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/email-alert-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/email-alert-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/email-alert-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/email-alert-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/email-alert-frontend/merges","archive_url":"https://api.github.com/repos/alphagov/email-alert-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/email-alert-frontend/downloads","issues_url":"https://api.github.com/repos/alphagov/email-alert-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/email-alert-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/email-alert-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/email-alert-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/email-alert-frontend/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/email-alert-frontend/releases{/id}","created_at":"2015-02-10T11:43:01Z","updated_at":"2015-02-10T11:52:58Z","pushed_at":"2015-04-23T15:16:15Z","git_url":"git://github.com/alphagov/email-alert-frontend.git","ssh_url":"git@github.com:alphagov/email-alert-frontend.git","clone_url":"https://github.com/alphagov/email-alert-frontend.git","svn_url":"https://github.com/alphagov/email-alert-frontend","homepage":null,"size":260,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"c0a475ff75203a0ad173549512a31ca9ebbcffa7","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":30589536,"name":"email-alert-frontend","full_name":"alphagov/email-alert-frontend","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/email-alert-frontend","description":"","fork":false,"url":"https://api.github.com/repos/alphagov/email-alert-frontend","forks_url":"https://api.github.com/repos/alphagov/email-alert-frontend/forks","keys_url":"https://api.github.com/repos/alphagov/email-alert-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/email-alert-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/email-alert-frontend/teams","hooks_url":"https://api.github.com/repos/alphagov/email-alert-frontend/hooks","issue_events_url":"https://api.github.com/repos/alphagov/email-alert-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/email-alert-frontend/events","assignees_url":"https://api.github.com/repos/alphagov/email-alert-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/email-alert-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/email-alert-frontend/tags","blobs_url":"https://api.github.com/repos/alphagov/email-alert-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/email-alert-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/email-alert-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/email-alert-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/email-alert-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/email-alert-frontend/languages","stargazers_url":"https://api.github.com/repos/alphagov/email-alert-frontend/stargazers","contributors_url":"https://api.github.com/repos/alphagov/email-alert-frontend/contributors","subscribers_url":"https://api.github.com/repos/alphagov/email-alert-frontend/subscribers","subscription_url":"https://api.github.com/repos/alphagov/email-alert-frontend/subscription","commits_url":"https://api.github.com/repos/alphagov/email-alert-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/email-alert-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/email-alert-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/email-alert-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/email-alert-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/email-alert-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/email-alert-frontend/merges","archive_url":"https://api.github.com/repos/alphagov/email-alert-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/email-alert-frontend/downloads","issues_url":"https://api.github.com/repos/alphagov/email-alert-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/email-alert-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/email-alert-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/email-alert-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/email-alert-frontend/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/email-alert-frontend/releases{/id}","created_at":"2015-02-10T11:43:01Z","updated_at":"2015-02-10T11:52:58Z","pushed_at":"2015-04-23T15:16:15Z","git_url":"git://github.com/alphagov/email-alert-frontend.git","ssh_url":"git@github.com:alphagov/email-alert-frontend.git","clone_url":"https://github.com/alphagov/email-alert-frontend.git","svn_url":"https://github.com/alphagov/email-alert-frontend","homepage":null,"size":260,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/email-alert-frontend/pulls/1"},"html":{"href":"https://github.com/alphagov/email-alert-frontend/pull/1"},"issue":{"href":"https://api.github.com/repos/alphagov/email-alert-frontend/issues/1"},"comments":{"href":"https://api.github.com/repos/alphagov/email-alert-frontend/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/email-alert-frontend/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/email-alert-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/email-alert-frontend/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/email-alert-frontend/statuses/f94baae8ca7af8732d6dd68c323459bdcf821ee9"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"tekin","id":3687,"avatar_url":"https://avatars.githubusercontent.com/u/3687?v=3","gravatar_id":"","url":"https://api.github.com/users/tekin","html_url":"https://github.com/tekin","followers_url":"https://api.github.com/users/tekin/followers","following_url":"https://api.github.com/users/tekin/following{/other_user}","gists_url":"https://api.github.com/users/tekin/gists{/gist_id}","starred_url":"https://api.github.com/users/tekin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tekin/subscriptions","organizations_url":"https://api.github.com/users/tekin/orgs","repos_url":"https://api.github.com/users/tekin/repos","events_url":"https://api.github.com/users/tekin/events{/privacy}","received_events_url":"https://api.github.com/users/tekin/received_events","type":"User","site_admin":false},"comments":2,"review_comments":10,"commits":22,"additions":726,"deletions":29,"changed_files":32}}