{"action":"closed","number":789,"pull_request":{"url":"https://api.github.com/repos/elifesciences/elife-bot/pulls/789","id":219093061,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5MDkzMDYx","html_url":"https://github.com/elifesciences/elife-bot/pull/789","diff_url":"https://github.com/elifesciences/elife-bot/pull/789.diff","patch_url":"https://github.com/elifesciences/elife-bot/pull/789.patch","issue_url":"https://api.github.com/repos/elifesciences/elife-bot/issues/789","number":789,"state":"closed","locked":false,"title":"Only set the digest stage to \"preview\" if stage is missing.","user":{"login":"gnott","id":1779115,"node_id":"MDQ6VXNlcjE3NzkxMTU=","avatar_url":"https://avatars1.githubusercontent.com/u/1779115?v=4","gravatar_id":"","url":"https://api.github.com/users/gnott","html_url":"https://github.com/gnott","followers_url":"https://api.github.com/users/gnott/followers","following_url":"https://api.github.com/users/gnott/following{/other_user}","gists_url":"https://api.github.com/users/gnott/gists{/gist_id}","starred_url":"https://api.github.com/users/gnott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnott/subscriptions","organizations_url":"https://api.github.com/users/gnott/orgs","repos_url":"https://api.github.com/users/gnott/repos","events_url":"https://api.github.com/users/gnott/events{/privacy}","received_events_url":"https://api.github.com/users/gnott/received_events","type":"User","site_admin":false},"body":"Fix for bug in comment https://github.com/elifesciences/elife-bot/pull/786#issuecomment-425573237\r\n\r\nWhen I moved `set_stage()` over to the digest_provider and simplified it for `PublishDigest` activity to also used, I removed the logic needed here on ingestion: it should only set `stage` to `preview` if the digest doesn't have a value for it, because if it is a silent correction, the digest will already have a `stage` of `published`, and we do not want to overwrite it with `preview` when the digest is ingested.","created_at":"2018-09-28T21:43:08Z","updated_at":"2018-10-02T16:22:37Z","closed_at":"2018-10-02T16:22:37Z","merged_at":"2018-10-02T16:22:37Z","merge_commit_sha":"b30583c2d752e4feeb262a6b6c0d9bfc2610cdf6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/elifesciences/elife-bot/pulls/789/commits","review_comments_url":"https://api.github.com/repos/elifesciences/elife-bot/pulls/789/comments","review_comment_url":"https://api.github.com/repos/elifesciences/elife-bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elifesciences/elife-bot/issues/789/comments","statuses_url":"https://api.github.com/repos/elifesciences/elife-bot/statuses/6331a49f13aea4b5dc850ddfba67d66dc8b9724d","head":{"label":"elifesciences:feature-digest-ingest-stage-fix","ref":"feature-digest-ingest-stage-fix","sha":"6331a49f13aea4b5dc850ddfba67d66dc8b9724d","user":{"login":"elifesciences","id":1777367,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NzczNjc=","avatar_url":"https://avatars2.githubusercontent.com/u/1777367?v=4","gravatar_id":"","url":"https://api.github.com/users/elifesciences","html_url":"https://github.com/elifesciences","followers_url":"https://api.github.com/users/elifesciences/followers","following_url":"https://api.github.com/users/elifesciences/following{/other_user}","gists_url":"https://api.github.com/users/elifesciences/gists{/gist_id}","starred_url":"https://api.github.com/users/elifesciences/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elifesciences/subscriptions","organizations_url":"https://api.github.com/users/elifesciences/orgs","repos_url":"https://api.github.com/users/elifesciences/repos","events_url":"https://api.github.com/users/elifesciences/events{/privacy}","received_events_url":"https://api.github.com/users/elifesciences/received_events","type":"Organization","site_admin":false},"repo":{"id":7503542,"node_id":"MDEwOlJlcG9zaXRvcnk3NTAzNTQy","name":"elife-bot","full_name":"elifesciences/elife-bot","private":false,"owner":{"login":"elifesciences","id":1777367,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NzczNjc=","avatar_url":"https://avatars2.githubusercontent.com/u/1777367?v=4","gravatar_id":"","url":"https://api.github.com/users/elifesciences","html_url":"https://github.com/elifesciences","followers_url":"https://api.github.com/users/elifesciences/followers","following_url":"https://api.github.com/users/elifesciences/following{/other_user}","gists_url":"https://api.github.com/users/elifesciences/gists{/gist_id}","starred_url":"https://api.github.com/users/elifesciences/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elifesciences/subscriptions","organizations_url":"https://api.github.com/users/elifesciences/orgs","repos_url":"https://api.github.com/users/elifesciences/repos","events_url":"https://api.github.com/users/elifesciences/events{/privacy}","received_events_url":"https://api.github.com/users/elifesciences/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/elifesciences/elife-bot","description":"tools for creating an automatic publishing workflow. ","fork":false,"url":"https://api.github.com/repos/elifesciences/elife-bot","forks_url":"https://api.github.com/repos/elifesciences/elife-bot/forks","keys_url":"https://api.github.com/repos/elifesciences/elife-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elifesciences/elife-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elifesciences/elife-bot/teams","hooks_url":"https://api.github.com/repos/elifesciences/elife-bot/hooks","issue_events_url":"https://api.github.com/repos/elifesciences/elife-bot/issues/events{/number}","events_url":"https://api.github.com/repos/elifesciences/elife-bot/events","assignees_url":"https://api.github.com/repos/elifesciences/elife-bot/assignees{/user}","branches_url":"https://api.github.com/repos/elifesciences/elife-bot/branches{/branch}","tags_url":"https://api.github.com/repos/elifesciences/elife-bot/tags","blobs_url":"https://api.github.com/repos/elifesciences/elife-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elifesciences/elife-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elifesciences/elife-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/elifesciences/elife-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elifesciences/elife-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/elifesciences/elife-bot/languages","stargazers_url":"https://api.github.com/repos/elifesciences/elife-bot/stargazers","contributors_url":"https://api.github.com/repos/elifesciences/elife-bot/contributors","subscribers_url":"https://api.github.com/repos/elifesciences/elife-bot/subscribers","subscription_url":"https://api.github.com/repos/elifesciences/elife-bot/subscription","commits_url":"https://api.github.com/repos/elifesciences/elife-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/elifesciences/elife-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/elifesciences/elife-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/elifesciences/elife-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/elifesciences/elife-bot/contents/{+path}","compare_url":"https://api.github.com/repos/elifesciences/elife-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elifesciences/elife-bot/merges","archive_url":"https://api.github.com/repos/elifesciences/elife-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elifesciences/elife-bot/downloads","issues_url":"https://api.github.com/repos/elifesciences/elife-bot/issues{/number}","pulls_url":"https://api.github.com/repos/elifesciences/elife-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/elifesciences/elife-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/elifesciences/elife-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elifesciences/elife-bot/labels{/name}","releases_url":"https://api.github.com/repos/elifesciences/elife-bot/releases{/id}","deployments_url":"https://api.github.com/repos/elifesciences/elife-bot/deployments","created_at":"2013-01-08T15:09:54Z","updated_at":"2018-10-01T10:21:50Z","pushed_at":"2018-10-02T16:22:37Z","git_url":"git://github.com/elifesciences/elife-bot.git","ssh_url":"git@github.com:elifesciences/elife-bot.git","clone_url":"https://github.com/elifesciences/elife-bot.git","svn_url":"https://github.com/elifesciences/elife-bot","homepage":null,"size":104215,"stargazers_count":15,"watchers_count":15,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":37,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":8,"open_issues":37,"watchers":15,"default_branch":"develop"}},"base":{"label":"elifesciences:develop","ref":"develop","sha":"7f4852e6ff3c2bd8a4d77a743946e9cfbedcf1a4","user":{"login":"elifesciences","id":1777367,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NzczNjc=","avatar_url":"https://avatars2.githubusercontent.com/u/1777367?v=4","gravatar_id":"","url":"https://api.github.com/users/elifesciences","html_url":"https://github.com/elifesciences","followers_url":"https://api.github.com/users/elifesciences/followers","following_url":"https://api.github.com/users/elifesciences/following{/other_user}","gists_url":"https://api.github.com/users/elifesciences/gists{/gist_id}","starred_url":"https://api.github.com/users/elifesciences/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elifesciences/subscriptions","organizations_url":"https://api.github.com/users/elifesciences/orgs","repos_url":"https://api.github.com/users/elifesciences/repos","events_url":"https://api.github.com/users/elifesciences/events{/privacy}","received_events_url":"https://api.github.com/users/elifesciences/received_events","type":"Organization","site_admin":false},"repo":{"id":7503542,"node_id":"MDEwOlJlcG9zaXRvcnk3NTAzNTQy","name":"elife-bot","full_name":"elifesciences/elife-bot","private":false,"owner":{"login":"elifesciences","id":1777367,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NzczNjc=","avatar_url":"https://avatars2.githubusercontent.com/u/1777367?v=4","gravatar_id":"","url":"https://api.github.com/users/elifesciences","html_url":"https://github.com/elifesciences","followers_url":"https://api.github.com/users/elifesciences/followers","following_url":"https://api.github.com/users/elifesciences/following{/other_user}","gists_url":"https://api.github.com/users/elifesciences/gists{/gist_id}","starred_url":"https://api.github.com/users/elifesciences/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elifesciences/subscriptions","organizations_url":"https://api.github.com/users/elifesciences/orgs","repos_url":"https://api.github.com/users/elifesciences/repos","events_url":"https://api.github.com/users/elifesciences/events{/privacy}","received_events_url":"https://api.github.com/users/elifesciences/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/elifesciences/elife-bot","description":"tools for creating an automatic publishing workflow. ","fork":false,"url":"https://api.github.com/repos/elifesciences/elife-bot","forks_url":"https://api.github.com/repos/elifesciences/elife-bot/forks","keys_url":"https://api.github.com/repos/elifesciences/elife-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elifesciences/elife-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elifesciences/elife-bot/teams","hooks_url":"https://api.github.com/repos/elifesciences/elife-bot/hooks","issue_events_url":"https://api.github.com/repos/elifesciences/elife-bot/issues/events{/number}","events_url":"https://api.github.com/repos/elifesciences/elife-bot/events","assignees_url":"https://api.github.com/repos/elifesciences/elife-bot/assignees{/user}","branches_url":"https://api.github.com/repos/elifesciences/elife-bot/branches{/branch}","tags_url":"https://api.github.com/repos/elifesciences/elife-bot/tags","blobs_url":"https://api.github.com/repos/elifesciences/elife-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elifesciences/elife-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elifesciences/elife-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/elifesciences/elife-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elifesciences/elife-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/elifesciences/elife-bot/languages","stargazers_url":"https://api.github.com/repos/elifesciences/elife-bot/stargazers","contributors_url":"https://api.github.com/repos/elifesciences/elife-bot/contributors","subscribers_url":"https://api.github.com/repos/elifesciences/elife-bot/subscribers","subscription_url":"https://api.github.com/repos/elifesciences/elife-bot/subscription","commits_url":"https://api.github.com/repos/elifesciences/elife-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/elifesciences/elife-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/elifesciences/elife-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/elifesciences/elife-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/elifesciences/elife-bot/contents/{+path}","compare_url":"https://api.github.com/repos/elifesciences/elife-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elifesciences/elife-bot/merges","archive_url":"https://api.github.com/repos/elifesciences/elife-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elifesciences/elife-bot/downloads","issues_url":"https://api.github.com/repos/elifesciences/elife-bot/issues{/number}","pulls_url":"https://api.github.com/repos/elifesciences/elife-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/elifesciences/elife-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/elifesciences/elife-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elifesciences/elife-bot/labels{/name}","releases_url":"https://api.github.com/repos/elifesciences/elife-bot/releases{/id}","deployments_url":"https://api.github.com/repos/elifesciences/elife-bot/deployments","created_at":"2013-01-08T15:09:54Z","updated_at":"2018-10-01T10:21:50Z","pushed_at":"2018-10-02T16:22:37Z","git_url":"git://github.com/elifesciences/elife-bot.git","ssh_url":"git@github.com:elifesciences/elife-bot.git","clone_url":"https://github.com/elifesciences/elife-bot.git","svn_url":"https://github.com/elifesciences/elife-bot","homepage":null,"size":104215,"stargazers_count":15,"watchers_count":15,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":37,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":8,"open_issues":37,"watchers":15,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/elifesciences/elife-bot/pulls/789"},"html":{"href":"https://github.com/elifesciences/elife-bot/pull/789"},"issue":{"href":"https://api.github.com/repos/elifesciences/elife-bot/issues/789"},"comments":{"href":"https://api.github.com/repos/elifesciences/elife-bot/issues/789/comments"},"review_comments":{"href":"https://api.github.com/repos/elifesciences/elife-bot/pulls/789/comments"},"review_comment":{"href":"https://api.github.com/repos/elifesciences/elife-bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elifesciences/elife-bot/pulls/789/commits"},"statuses":{"href":"https://api.github.com/repos/elifesciences/elife-bot/statuses/6331a49f13aea4b5dc850ddfba67d66dc8b9724d"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"gnott","id":1779115,"node_id":"MDQ6VXNlcjE3NzkxMTU=","avatar_url":"https://avatars1.githubusercontent.com/u/1779115?v=4","gravatar_id":"","url":"https://api.github.com/users/gnott","html_url":"https://github.com/gnott","followers_url":"https://api.github.com/users/gnott/followers","following_url":"https://api.github.com/users/gnott/following{/other_user}","gists_url":"https://api.github.com/users/gnott/gists{/gist_id}","starred_url":"https://api.github.com/users/gnott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnott/subscriptions","organizations_url":"https://api.github.com/users/gnott/orgs","repos_url":"https://api.github.com/users/gnott/repos","events_url":"https://api.github.com/users/gnott/events{/privacy}","received_events_url":"https://api.github.com/users/gnott/received_events","type":"User","site_admin":false},"comments":2,"review_comments":4,"maintainer_can_modify":false,"commits":4,"additions":6,"deletions":1,"changed_files":2}}
{"actor":{"display_login":"gnott"}}