{"action":"created","comment":{"url":"https://api.github.com/repos/projecthydra-labs/lerna/pulls/comments/83270592","pull_request_review_id":4125761,"id":83270592,"diff_hunk":"@@ -24,4 +28,11 @@ def instance\n       first_or_create\n     end\n   end\n+\n+  private\n+\n+    def update_banner_config\n+      # If a site banner_image uploaded, then update Sufia's banner_image to use it\n+      Sufia.config.banner_image = banner_image? ? banner_image.url : nil","path":"app/models/site.rb","position":20,"original_position":20,"commit_id":"90084b773f3424e409a4e7c70b6ddb2b96d6034e","original_commit_id":"90084b773f3424e409a4e7c70b6ddb2b96d6034e","user":{"login":"tdonohue","id":483997,"avatar_url":"https://avatars.githubusercontent.com/u/483997?v=3","gravatar_id":"","url":"https://api.github.com/users/tdonohue","html_url":"https://github.com/tdonohue","followers_url":"https://api.github.com/users/tdonohue/followers","following_url":"https://api.github.com/users/tdonohue/following{/other_user}","gists_url":"https://api.github.com/users/tdonohue/gists{/gist_id}","starred_url":"https://api.github.com/users/tdonohue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdonohue/subscriptions","organizations_url":"https://api.github.com/users/tdonohue/orgs","repos_url":"https://api.github.com/users/tdonohue/repos","events_url":"https://api.github.com/users/tdonohue/events{/privacy}","received_events_url":"https://api.github.com/users/tdonohue/received_events","type":"User","site_admin":false},"body":"`Sufia.config` is how I'm updating Sufia's default configuration for its banner_image: https://github.com/projecthydra/sufia/blob/818cb4ca53d81fdb37835a0cd7c753d66eacd679/lib/sufia/configuration.rb#L10-L13\r\n\r\nIf there's a better way to achieve this, maybe I'm not aware of it (suggestions welcome!). Essentially, the goal here is to dynamically update Sufia's `banner_image` setting to the newly uploaded Lerna banner image location.","created_at":"2016-10-13T17:37:42Z","updated_at":"2016-10-13T17:37:43Z","html_url":"https://github.com/projecthydra-labs/lerna/pull/402#discussion_r83270592","pull_request_url":"https://api.github.com/repos/projecthydra-labs/lerna/pulls/402","_links":{"self":{"href":"https://api.github.com/repos/projecthydra-labs/lerna/pulls/comments/83270592"},"html":{"href":"https://github.com/projecthydra-labs/lerna/pull/402#discussion_r83270592"},"pull_request":{"href":"https://api.github.com/repos/projecthydra-labs/lerna/pulls/402"}}},"pull_request":{"url":"https://api.github.com/repos/projecthydra-labs/lerna/pulls/402","id":89234908,"html_url":"https://github.com/projecthydra-labs/lerna/pull/402","diff_url":"https://github.com/projecthydra-labs/lerna/pull/402.diff","patch_url":"https://github.com/projecthydra-labs/lerna/pull/402.patch","issue_url":"https://api.github.com/repos/projecthydra-labs/lerna/issues/402","number":402,"state":"open","locked":false,"title":"[WIP] Allow uploading of landing page image","user":{"login":"tdonohue","id":483997,"avatar_url":"https://avatars.githubusercontent.com/u/483997?v=3","gravatar_id":"","url":"https://api.github.com/users/tdonohue","html_url":"https://github.com/tdonohue","followers_url":"https://api.github.com/users/tdonohue/followers","following_url":"https://api.github.com/users/tdonohue/following{/other_user}","gists_url":"https://api.github.com/users/tdonohue/gists{/gist_id}","starred_url":"https://api.github.com/users/tdonohue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdonohue/subscriptions","organizations_url":"https://api.github.com/users/tdonohue/orgs","repos_url":"https://api.github.com/users/tdonohue/repos","events_url":"https://api.github.com/users/tdonohue/events{/privacy}","received_events_url":"https://api.github.com/users/tdonohue/received_events","type":"User","site_admin":false},"body":"Fixes #285 \r\n\r\nThis is still a work in progress as it doesn't (yet) include necessary RSpec tests.  However, the basic functionality \"works\" and could start to be reviewed for completeness / correctness.","created_at":"2016-10-13T16:15:59Z","updated_at":"2016-10-13T17:37:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"701abfa3b859798dbeae27032475e63d0d731411","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/projecthydra-labs/lerna/pulls/402/commits","review_comments_url":"https://api.github.com/repos/projecthydra-labs/lerna/pulls/402/comments","review_comment_url":"https://api.github.com/repos/projecthydra-labs/lerna/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projecthydra-labs/lerna/issues/402/comments","statuses_url":"https://api.github.com/repos/projecthydra-labs/lerna/statuses/90084b773f3424e409a4e7c70b6ddb2b96d6034e","head":{"label":"projecthydra-labs:285_landing_image","ref":"285_landing_image","sha":"90084b773f3424e409a4e7c70b6ddb2b96d6034e","user":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":53448835,"name":"lerna","full_name":"projecthydra-labs/lerna","owner":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projecthydra-labs/lerna","description":"The Hydra-in-a-Box repository application (codename: Lerna)","fork":false,"url":"https://api.github.com/repos/projecthydra-labs/lerna","forks_url":"https://api.github.com/repos/projecthydra-labs/lerna/forks","keys_url":"https://api.github.com/repos/projecthydra-labs/lerna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projecthydra-labs/lerna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projecthydra-labs/lerna/teams","hooks_url":"https://api.github.com/repos/projecthydra-labs/lerna/hooks","issue_events_url":"https://api.github.com/repos/projecthydra-labs/lerna/issues/events{/number}","events_url":"https://api.github.com/repos/projecthydra-labs/lerna/events","assignees_url":"https://api.github.com/repos/projecthydra-labs/lerna/assignees{/user}","branches_url":"https://api.github.com/repos/projecthydra-labs/lerna/branches{/branch}","tags_url":"https://api.github.com/repos/projecthydra-labs/lerna/tags","blobs_url":"https://api.github.com/repos/projecthydra-labs/lerna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projecthydra-labs/lerna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projecthydra-labs/lerna/git/refs{/sha}","trees_url":"https://api.github.com/repos/projecthydra-labs/lerna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projecthydra-labs/lerna/statuses/{sha}","languages_url":"https://api.github.com/repos/projecthydra-labs/lerna/languages","stargazers_url":"https://api.github.com/repos/projecthydra-labs/lerna/stargazers","contributors_url":"https://api.github.com/repos/projecthydra-labs/lerna/contributors","subscribers_url":"https://api.github.com/repos/projecthydra-labs/lerna/subscribers","subscription_url":"https://api.github.com/repos/projecthydra-labs/lerna/subscription","commits_url":"https://api.github.com/repos/projecthydra-labs/lerna/commits{/sha}","git_commits_url":"https://api.github.com/repos/projecthydra-labs/lerna/git/commits{/sha}","comments_url":"https://api.github.com/repos/projecthydra-labs/lerna/comments{/number}","issue_comment_url":"https://api.github.com/repos/projecthydra-labs/lerna/issues/comments{/number}","contents_url":"https://api.github.com/repos/projecthydra-labs/lerna/contents/{+path}","compare_url":"https://api.github.com/repos/projecthydra-labs/lerna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projecthydra-labs/lerna/merges","archive_url":"https://api.github.com/repos/projecthydra-labs/lerna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projecthydra-labs/lerna/downloads","issues_url":"https://api.github.com/repos/projecthydra-labs/lerna/issues{/number}","pulls_url":"https://api.github.com/repos/projecthydra-labs/lerna/pulls{/number}","milestones_url":"https://api.github.com/repos/projecthydra-labs/lerna/milestones{/number}","notifications_url":"https://api.github.com/repos/projecthydra-labs/lerna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projecthydra-labs/lerna/labels{/name}","releases_url":"https://api.github.com/repos/projecthydra-labs/lerna/releases{/id}","deployments_url":"https://api.github.com/repos/projecthydra-labs/lerna/deployments","created_at":"2016-03-08T22:08:25Z","updated_at":"2016-09-08T01:04:48Z","pushed_at":"2016-10-13T16:15:59Z","git_url":"git://github.com/projecthydra-labs/lerna.git","ssh_url":"git@github.com:projecthydra-labs/lerna.git","clone_url":"https://github.com/projecthydra-labs/lerna.git","svn_url":"https://github.com/projecthydra-labs/lerna","homepage":"http://hydrainabox.projecthydra.org/","size":2391,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":47,"forks":1,"open_issues":47,"watchers":6,"default_branch":"master"}},"base":{"label":"projecthydra-labs:master","ref":"master","sha":"0e1d1148a0aaea7bca9853399e065b322230b602","user":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":53448835,"name":"lerna","full_name":"projecthydra-labs/lerna","owner":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projecthydra-labs/lerna","description":"The Hydra-in-a-Box repository application (codename: Lerna)","fork":false,"url":"https://api.github.com/repos/projecthydra-labs/lerna","forks_url":"https://api.github.com/repos/projecthydra-labs/lerna/forks","keys_url":"https://api.github.com/repos/projecthydra-labs/lerna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projecthydra-labs/lerna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projecthydra-labs/lerna/teams","hooks_url":"https://api.github.com/repos/projecthydra-labs/lerna/hooks","issue_events_url":"https://api.github.com/repos/projecthydra-labs/lerna/issues/events{/number}","events_url":"https://api.github.com/repos/projecthydra-labs/lerna/events","assignees_url":"https://api.github.com/repos/projecthydra-labs/lerna/assignees{/user}","branches_url":"https://api.github.com/repos/projecthydra-labs/lerna/branches{/branch}","tags_url":"https://api.github.com/repos/projecthydra-labs/lerna/tags","blobs_url":"https://api.github.com/repos/projecthydra-labs/lerna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projecthydra-labs/lerna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projecthydra-labs/lerna/git/refs{/sha}","trees_url":"https://api.github.com/repos/projecthydra-labs/lerna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projecthydra-labs/lerna/statuses/{sha}","languages_url":"https://api.github.com/repos/projecthydra-labs/lerna/languages","stargazers_url":"https://api.github.com/repos/projecthydra-labs/lerna/stargazers","contributors_url":"https://api.github.com/repos/projecthydra-labs/lerna/contributors","subscribers_url":"https://api.github.com/repos/projecthydra-labs/lerna/subscribers","subscription_url":"https://api.github.com/repos/projecthydra-labs/lerna/subscription","commits_url":"https://api.github.com/repos/projecthydra-labs/lerna/commits{/sha}","git_commits_url":"https://api.github.com/repos/projecthydra-labs/lerna/git/commits{/sha}","comments_url":"https://api.github.com/repos/projecthydra-labs/lerna/comments{/number}","issue_comment_url":"https://api.github.com/repos/projecthydra-labs/lerna/issues/comments{/number}","contents_url":"https://api.github.com/repos/projecthydra-labs/lerna/contents/{+path}","compare_url":"https://api.github.com/repos/projecthydra-labs/lerna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projecthydra-labs/lerna/merges","archive_url":"https://api.github.com/repos/projecthydra-labs/lerna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projecthydra-labs/lerna/downloads","issues_url":"https://api.github.com/repos/projecthydra-labs/lerna/issues{/number}","pulls_url":"https://api.github.com/repos/projecthydra-labs/lerna/pulls{/number}","milestones_url":"https://api.github.com/repos/projecthydra-labs/lerna/milestones{/number}","notifications_url":"https://api.github.com/repos/projecthydra-labs/lerna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projecthydra-labs/lerna/labels{/name}","releases_url":"https://api.github.com/repos/projecthydra-labs/lerna/releases{/id}","deployments_url":"https://api.github.com/repos/projecthydra-labs/lerna/deployments","created_at":"2016-03-08T22:08:25Z","updated_at":"2016-09-08T01:04:48Z","pushed_at":"2016-10-13T16:15:59Z","git_url":"git://github.com/projecthydra-labs/lerna.git","ssh_url":"git@github.com:projecthydra-labs/lerna.git","clone_url":"https://github.com/projecthydra-labs/lerna.git","svn_url":"https://github.com/projecthydra-labs/lerna","homepage":"http://hydrainabox.projecthydra.org/","size":2391,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":47,"forks":1,"open_issues":47,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projecthydra-labs/lerna/pulls/402"},"html":{"href":"https://github.com/projecthydra-labs/lerna/pull/402"},"issue":{"href":"https://api.github.com/repos/projecthydra-labs/lerna/issues/402"},"comments":{"href":"https://api.github.com/repos/projecthydra-labs/lerna/issues/402/comments"},"review_comments":{"href":"https://api.github.com/repos/projecthydra-labs/lerna/pulls/402/comments"},"review_comment":{"href":"https://api.github.com/repos/projecthydra-labs/lerna/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projecthydra-labs/lerna/pulls/402/commits"},"statuses":{"href":"https://api.github.com/repos/projecthydra-labs/lerna/statuses/90084b773f3424e409a4e7c70b6ddb2b96d6034e"}}}}
{"actor":{"display_login":"tdonohue"}}