{"action":"closed","number":544,"pull_request":{"url":"https://api.github.com/repos/alphagov/specialist-publisher/pulls/544","id":43424121,"html_url":"https://github.com/alphagov/specialist-publisher/pull/544","diff_url":"https://github.com/alphagov/specialist-publisher/pull/544.diff","patch_url":"https://github.com/alphagov/specialist-publisher/pull/544.patch","issue_url":"https://api.github.com/repos/alphagov/specialist-publisher/issues/544","number":544,"state":"closed","locked":false,"title":"Prevent finder publishing when preview_only set and not in preview env","user":{"login":"robmckinnon","id":3447,"avatar_url":"https://avatars.githubusercontent.com/u/3447?v=3","gravatar_id":"","url":"https://api.github.com/users/robmckinnon","html_url":"https://github.com/robmckinnon","followers_url":"https://api.github.com/users/robmckinnon/followers","following_url":"https://api.github.com/users/robmckinnon/following{/other_user}","gists_url":"https://api.github.com/users/robmckinnon/gists{/gist_id}","starred_url":"https://api.github.com/users/robmckinnon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robmckinnon/subscriptions","organizations_url":"https://api.github.com/users/robmckinnon/orgs","repos_url":"https://api.github.com/users/robmckinnon/repos","events_url":"https://api.github.com/users/robmckinnon/events{/privacy}","received_events_url":"https://api.github.com/users/robmckinnon/received_events","type":"User","site_admin":false},"body":"This allows for new finders to be merged onto master for use in preview environment, while preventing them going live on gov.uk. This feature flag was agreed with @jennyd.\r\n\r\nIt will still publish finder if RAILS_ENV is not production. Set preview_only in the document metadata file when needed.\r\n\r\nAlso refactored spec to make it easier to reuse metadata and schema fixture setup.","created_at":"2015-08-26T16:41:26Z","updated_at":"2015-08-27T08:03:26Z","closed_at":"2015-08-27T08:03:26Z","merged_at":"2015-08-27T08:03:26Z","merge_commit_sha":"a1d400a457c65278b19c3c2cf8ca80d2c14d0633","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/specialist-publisher/pulls/544/commits","review_comments_url":"https://api.github.com/repos/alphagov/specialist-publisher/pulls/544/comments","review_comment_url":"https://api.github.com/repos/alphagov/specialist-publisher/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/specialist-publisher/issues/544/comments","statuses_url":"https://api.github.com/repos/alphagov/specialist-publisher/statuses/e1b2e52761b3435cbff217de2d94b9a54bff7132","head":{"label":"ministryofjustice:preview-only-flag","ref":"preview-only-flag","sha":"e1b2e52761b3435cbff217de2d94b9a54bff7132","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":37595119,"name":"specialist-publisher","full_name":"ministryofjustice/specialist-publisher","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/specialist-publisher","description":"Publishing App for Specialist Documents and Manuals on GOV.UK","fork":true,"url":"https://api.github.com/repos/ministryofjustice/specialist-publisher","forks_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/forks","keys_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/events","assignees_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/merges","archive_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/specialist-publisher/releases{/id}","created_at":"2015-06-17T13:01:20Z","updated_at":"2015-06-17T13:01:21Z","pushed_at":"2015-08-26T16:39:24Z","git_url":"git://github.com/ministryofjustice/specialist-publisher.git","ssh_url":"git@github.com:ministryofjustice/specialist-publisher.git","clone_url":"https://github.com/ministryofjustice/specialist-publisher.git","svn_url":"https://github.com/ministryofjustice/specialist-publisher","homepage":"","size":4926,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"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":"tribunals"}},"base":{"label":"alphagov:master","ref":"master","sha":"77228aba5e87bf8873006f5ed2db82e1671b907e","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":16176198,"name":"specialist-publisher","full_name":"alphagov/specialist-publisher","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/specialist-publisher","description":"Publishing App for Specialist Documents and Manuals on GOV.UK","fork":false,"url":"https://api.github.com/repos/alphagov/specialist-publisher","forks_url":"https://api.github.com/repos/alphagov/specialist-publisher/forks","keys_url":"https://api.github.com/repos/alphagov/specialist-publisher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/specialist-publisher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/specialist-publisher/teams","hooks_url":"https://api.github.com/repos/alphagov/specialist-publisher/hooks","issue_events_url":"https://api.github.com/repos/alphagov/specialist-publisher/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/specialist-publisher/events","assignees_url":"https://api.github.com/repos/alphagov/specialist-publisher/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/specialist-publisher/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/specialist-publisher/tags","blobs_url":"https://api.github.com/repos/alphagov/specialist-publisher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/specialist-publisher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/specialist-publisher/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/specialist-publisher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/specialist-publisher/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/specialist-publisher/languages","stargazers_url":"https://api.github.com/repos/alphagov/specialist-publisher/stargazers","contributors_url":"https://api.github.com/repos/alphagov/specialist-publisher/contributors","subscribers_url":"https://api.github.com/repos/alphagov/specialist-publisher/subscribers","subscription_url":"https://api.github.com/repos/alphagov/specialist-publisher/subscription","commits_url":"https://api.github.com/repos/alphagov/specialist-publisher/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/specialist-publisher/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/specialist-publisher/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/specialist-publisher/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/specialist-publisher/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/specialist-publisher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/specialist-publisher/merges","archive_url":"https://api.github.com/repos/alphagov/specialist-publisher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/specialist-publisher/downloads","issues_url":"https://api.github.com/repos/alphagov/specialist-publisher/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/specialist-publisher/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/specialist-publisher/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/specialist-publisher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/specialist-publisher/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/specialist-publisher/releases{/id}","created_at":"2014-01-23T15:21:42Z","updated_at":"2015-05-07T16:53:19Z","pushed_at":"2015-08-27T08:03:26Z","git_url":"git://github.com/alphagov/specialist-publisher.git","ssh_url":"git@github.com:alphagov/specialist-publisher.git","clone_url":"https://github.com/alphagov/specialist-publisher.git","svn_url":"https://github.com/alphagov/specialist-publisher","homepage":"","size":13408,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":3,"forks":8,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/specialist-publisher/pulls/544"},"html":{"href":"https://github.com/alphagov/specialist-publisher/pull/544"},"issue":{"href":"https://api.github.com/repos/alphagov/specialist-publisher/issues/544"},"comments":{"href":"https://api.github.com/repos/alphagov/specialist-publisher/issues/544/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/specialist-publisher/pulls/544/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/specialist-publisher/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/specialist-publisher/pulls/544/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/specialist-publisher/statuses/e1b2e52761b3435cbff217de2d94b9a54bff7132"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"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},"comments":0,"review_comments":0,"commits":2,"additions":139,"deletions":112,"changed_files":2}}