{"action":"created","comment":{"url":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/comments/175759113","pull_request_review_id":105339724,"id":175759113,"diff_hunk":"@@ -0,0 +1,59 @@\n+// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n+// See License.txt for license information.\n+\n+import PropTypes from 'prop-types';\n+import React from 'react';\n+import {FormattedMessage} from 'react-intl';\n+\n+export default class SiteNameAndDescription extends React.PureComponent {\n+    static propTypes = {\n+\n+        /**\n+         * Custom description of the site\n+         */\n+        customDescriptionText: PropTypes.string,\n+\n+        /**\n+         * Set to true if instance is licensed; false as default\n+         */\n+        isLicensed: PropTypes.bool,\n+\n+        /**\n+         * Site name; \"Mattermost\" as default\n+         */\n+        siteName: PropTypes.string,\n+    };\n+\n+    static defaultProps = {\n+        isLicensed: false,\n+        siteName: 'Mattermost',\n+    };\n+\n+    render() {\n+        const {\n+            customDescriptionText,\n+            isLicensed,\n+            siteName,\n+        } = this.props;\n+        let description = null;\n+        if (isLicensed && customDescriptionText) {\n+            description = customDescriptionText;","path":"components/common/site_name_and_description.jsx","position":40,"original_position":40,"commit_id":"1fd586490fbda0c8c8ef596502a181fb24a9424a","original_commit_id":"1fd586490fbda0c8c8ef596502a181fb24a9424a","user":{"login":"saturninoabril","id":5334504,"avatar_url":"https://avatars2.githubusercontent.com/u/5334504?v=4","gravatar_id":"","url":"https://api.github.com/users/saturninoabril","html_url":"https://github.com/saturninoabril","followers_url":"https://api.github.com/users/saturninoabril/followers","following_url":"https://api.github.com/users/saturninoabril/following{/other_user}","gists_url":"https://api.github.com/users/saturninoabril/gists{/gist_id}","starred_url":"https://api.github.com/users/saturninoabril/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saturninoabril/subscriptions","organizations_url":"https://api.github.com/users/saturninoabril/orgs","repos_url":"https://api.github.com/users/saturninoabril/repos","events_url":"https://api.github.com/users/saturninoabril/events{/privacy}","received_events_url":"https://api.github.com/users/saturninoabril/received_events","type":"User","site_admin":false},"body":"Show custom site's description if the instance is licensed and `customDescriptionText` is not empty.","created_at":"2018-03-20T13:15:09Z","updated_at":"2018-03-20T13:15:09Z","html_url":"https://github.com/mattermost/mattermost-webapp/pull/982#discussion_r175759113","pull_request_url":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/982","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/comments/175759113"},"html":{"href":"https://github.com/mattermost/mattermost-webapp/pull/982#discussion_r175759113"},"pull_request":{"href":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/982"}}},"pull_request":{"url":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/982","id":176185464,"html_url":"https://github.com/mattermost/mattermost-webapp/pull/982","diff_url":"https://github.com/mattermost/mattermost-webapp/pull/982.diff","patch_url":"https://github.com/mattermost/mattermost-webapp/pull/982.patch","issue_url":"https://api.github.com/repos/mattermost/mattermost-webapp/issues/982","number":982,"state":"open","locked":false,"title":"[MM-9844] Make site description (config.CustomDescriptionText) not dependent from config.EnableCustomBrand","user":{"login":"saturninoabril","id":5334504,"avatar_url":"https://avatars2.githubusercontent.com/u/5334504?v=4","gravatar_id":"","url":"https://api.github.com/users/saturninoabril","html_url":"https://github.com/saturninoabril","followers_url":"https://api.github.com/users/saturninoabril/followers","following_url":"https://api.github.com/users/saturninoabril/following{/other_user}","gists_url":"https://api.github.com/users/saturninoabril/gists{/gist_id}","starred_url":"https://api.github.com/users/saturninoabril/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saturninoabril/subscriptions","organizations_url":"https://api.github.com/users/saturninoabril/orgs","repos_url":"https://api.github.com/users/saturninoabril/repos","events_url":"https://api.github.com/users/saturninoabril/events{/privacy}","received_events_url":"https://api.github.com/users/saturninoabril/received_events","type":"User","site_admin":false},"body":"#### Summary\r\nMake site description (config.CustomDescriptionText) not dependent from config.EnableCustomBrand\r\n- add separate component as `SiteNameAndDescription`\r\n- use that component to all that require it\r\n\r\n#### Ticket Link\r\nJira ticket: [MM-9844](https://mattermost.atlassian.net/browse/MM-9844)\r\n\r\n#### Checklist\r\n- [x] Ran `make check-style` to check for style errors (required for all pull requests)\r\n- [x] Ran `make test` to ensure unit and component tests passed\r\n- [x] Added or updated unit tests (required for all new features)\r\n","created_at":"2018-03-20T13:12:20Z","updated_at":"2018-03-20T13:15:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7572e5cd70d4f516f816997dcc8a6c46e122450a","assignee":null,"assignees":[],"requested_reviewers":[{"login":"lieut-data","id":1023171,"avatar_url":"https://avatars2.githubusercontent.com/u/1023171?v=4","gravatar_id":"","url":"https://api.github.com/users/lieut-data","html_url":"https://github.com/lieut-data","followers_url":"https://api.github.com/users/lieut-data/followers","following_url":"https://api.github.com/users/lieut-data/following{/other_user}","gists_url":"https://api.github.com/users/lieut-data/gists{/gist_id}","starred_url":"https://api.github.com/users/lieut-data/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lieut-data/subscriptions","organizations_url":"https://api.github.com/users/lieut-data/orgs","repos_url":"https://api.github.com/users/lieut-data/repos","events_url":"https://api.github.com/users/lieut-data/events{/privacy}","received_events_url":"https://api.github.com/users/lieut-data/received_events","type":"User","site_admin":false},{"login":"mkraft","id":1149597,"avatar_url":"https://avatars1.githubusercontent.com/u/1149597?v=4","gravatar_id":"","url":"https://api.github.com/users/mkraft","html_url":"https://github.com/mkraft","followers_url":"https://api.github.com/users/mkraft/followers","following_url":"https://api.github.com/users/mkraft/following{/other_user}","gists_url":"https://api.github.com/users/mkraft/gists{/gist_id}","starred_url":"https://api.github.com/users/mkraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkraft/subscriptions","organizations_url":"https://api.github.com/users/mkraft/orgs","repos_url":"https://api.github.com/users/mkraft/repos","events_url":"https://api.github.com/users/mkraft/events{/privacy}","received_events_url":"https://api.github.com/users/mkraft/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":685999255,"url":"https://api.github.com/repos/mattermost/mattermost-webapp/labels/2:%20Dev%20Review","name":"2: Dev Review","color":"eb6420","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/982/commits","review_comments_url":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/982/comments","review_comment_url":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mattermost/mattermost-webapp/issues/982/comments","statuses_url":"https://api.github.com/repos/mattermost/mattermost-webapp/statuses/1fd586490fbda0c8c8ef596502a181fb24a9424a","head":{"label":"saturninoabril:MM-9844","ref":"MM-9844","sha":"1fd586490fbda0c8c8ef596502a181fb24a9424a","user":{"login":"saturninoabril","id":5334504,"avatar_url":"https://avatars2.githubusercontent.com/u/5334504?v=4","gravatar_id":"","url":"https://api.github.com/users/saturninoabril","html_url":"https://github.com/saturninoabril","followers_url":"https://api.github.com/users/saturninoabril/followers","following_url":"https://api.github.com/users/saturninoabril/following{/other_user}","gists_url":"https://api.github.com/users/saturninoabril/gists{/gist_id}","starred_url":"https://api.github.com/users/saturninoabril/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saturninoabril/subscriptions","organizations_url":"https://api.github.com/users/saturninoabril/orgs","repos_url":"https://api.github.com/users/saturninoabril/repos","events_url":"https://api.github.com/users/saturninoabril/events{/privacy}","received_events_url":"https://api.github.com/users/saturninoabril/received_events","type":"User","site_admin":false},"repo":{"id":102709140,"name":"mattermost-webapp","full_name":"saturninoabril/mattermost-webapp","owner":{"login":"saturninoabril","id":5334504,"avatar_url":"https://avatars2.githubusercontent.com/u/5334504?v=4","gravatar_id":"","url":"https://api.github.com/users/saturninoabril","html_url":"https://github.com/saturninoabril","followers_url":"https://api.github.com/users/saturninoabril/followers","following_url":"https://api.github.com/users/saturninoabril/following{/other_user}","gists_url":"https://api.github.com/users/saturninoabril/gists{/gist_id}","starred_url":"https://api.github.com/users/saturninoabril/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saturninoabril/subscriptions","organizations_url":"https://api.github.com/users/saturninoabril/orgs","repos_url":"https://api.github.com/users/saturninoabril/repos","events_url":"https://api.github.com/users/saturninoabril/events{/privacy}","received_events_url":"https://api.github.com/users/saturninoabril/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/saturninoabril/mattermost-webapp","description":"Webapp of Mattermost server: https://github.com/mattermost/mattermost-server","fork":true,"url":"https://api.github.com/repos/saturninoabril/mattermost-webapp","forks_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/forks","keys_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/teams","hooks_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/hooks","issue_events_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/issues/events{/number}","events_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/events","assignees_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/assignees{/user}","branches_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/branches{/branch}","tags_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/tags","blobs_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/statuses/{sha}","languages_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/languages","stargazers_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/stargazers","contributors_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/contributors","subscribers_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/subscribers","subscription_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/subscription","commits_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/contents/{+path}","compare_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/merges","archive_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/downloads","issues_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/issues{/number}","pulls_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/pulls{/number}","milestones_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/milestones{/number}","notifications_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/labels{/name}","releases_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/releases{/id}","deployments_url":"https://api.github.com/repos/saturninoabril/mattermost-webapp/deployments","created_at":"2017-09-07T08:03:14Z","updated_at":"2018-03-20T10:15:33Z","pushed_at":"2018-03-20T13:08:13Z","git_url":"git://github.com/saturninoabril/mattermost-webapp.git","ssh_url":"git@github.com:saturninoabril/mattermost-webapp.git","clone_url":"https://github.com/saturninoabril/mattermost-webapp.git","svn_url":"https://github.com/saturninoabril/mattermost-webapp","homepage":null,"size":97594,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mattermost:master","ref":"master","sha":"cb0657dd2e35630ed1e3afab84ce293a72dab340","user":{"login":"mattermost","id":9828093,"avatar_url":"https://avatars1.githubusercontent.com/u/9828093?v=4","gravatar_id":"","url":"https://api.github.com/users/mattermost","html_url":"https://github.com/mattermost","followers_url":"https://api.github.com/users/mattermost/followers","following_url":"https://api.github.com/users/mattermost/following{/other_user}","gists_url":"https://api.github.com/users/mattermost/gists{/gist_id}","starred_url":"https://api.github.com/users/mattermost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattermost/subscriptions","organizations_url":"https://api.github.com/users/mattermost/orgs","repos_url":"https://api.github.com/users/mattermost/repos","events_url":"https://api.github.com/users/mattermost/events{/privacy}","received_events_url":"https://api.github.com/users/mattermost/received_events","type":"Organization","site_admin":false},"repo":{"id":102689445,"name":"mattermost-webapp","full_name":"mattermost/mattermost-webapp","owner":{"login":"mattermost","id":9828093,"avatar_url":"https://avatars1.githubusercontent.com/u/9828093?v=4","gravatar_id":"","url":"https://api.github.com/users/mattermost","html_url":"https://github.com/mattermost","followers_url":"https://api.github.com/users/mattermost/followers","following_url":"https://api.github.com/users/mattermost/following{/other_user}","gists_url":"https://api.github.com/users/mattermost/gists{/gist_id}","starred_url":"https://api.github.com/users/mattermost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattermost/subscriptions","organizations_url":"https://api.github.com/users/mattermost/orgs","repos_url":"https://api.github.com/users/mattermost/repos","events_url":"https://api.github.com/users/mattermost/events{/privacy}","received_events_url":"https://api.github.com/users/mattermost/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mattermost/mattermost-webapp","description":"Webapp of Mattermost server: https://github.com/mattermost/mattermost-server","fork":false,"url":"https://api.github.com/repos/mattermost/mattermost-webapp","forks_url":"https://api.github.com/repos/mattermost/mattermost-webapp/forks","keys_url":"https://api.github.com/repos/mattermost/mattermost-webapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattermost/mattermost-webapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattermost/mattermost-webapp/teams","hooks_url":"https://api.github.com/repos/mattermost/mattermost-webapp/hooks","issue_events_url":"https://api.github.com/repos/mattermost/mattermost-webapp/issues/events{/number}","events_url":"https://api.github.com/repos/mattermost/mattermost-webapp/events","assignees_url":"https://api.github.com/repos/mattermost/mattermost-webapp/assignees{/user}","branches_url":"https://api.github.com/repos/mattermost/mattermost-webapp/branches{/branch}","tags_url":"https://api.github.com/repos/mattermost/mattermost-webapp/tags","blobs_url":"https://api.github.com/repos/mattermost/mattermost-webapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattermost/mattermost-webapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattermost/mattermost-webapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattermost/mattermost-webapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattermost/mattermost-webapp/statuses/{sha}","languages_url":"https://api.github.com/repos/mattermost/mattermost-webapp/languages","stargazers_url":"https://api.github.com/repos/mattermost/mattermost-webapp/stargazers","contributors_url":"https://api.github.com/repos/mattermost/mattermost-webapp/contributors","subscribers_url":"https://api.github.com/repos/mattermost/mattermost-webapp/subscribers","subscription_url":"https://api.github.com/repos/mattermost/mattermost-webapp/subscription","commits_url":"https://api.github.com/repos/mattermost/mattermost-webapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattermost/mattermost-webapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattermost/mattermost-webapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattermost/mattermost-webapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/mattermost/mattermost-webapp/contents/{+path}","compare_url":"https://api.github.com/repos/mattermost/mattermost-webapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattermost/mattermost-webapp/merges","archive_url":"https://api.github.com/repos/mattermost/mattermost-webapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattermost/mattermost-webapp/downloads","issues_url":"https://api.github.com/repos/mattermost/mattermost-webapp/issues{/number}","pulls_url":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls{/number}","milestones_url":"https://api.github.com/repos/mattermost/mattermost-webapp/milestones{/number}","notifications_url":"https://api.github.com/repos/mattermost/mattermost-webapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattermost/mattermost-webapp/labels{/name}","releases_url":"https://api.github.com/repos/mattermost/mattermost-webapp/releases{/id}","deployments_url":"https://api.github.com/repos/mattermost/mattermost-webapp/deployments","created_at":"2017-09-07T04:00:02Z","updated_at":"2018-03-20T10:53:44Z","pushed_at":"2018-03-20T13:12:20Z","git_url":"git://github.com/mattermost/mattermost-webapp.git","ssh_url":"git@github.com:mattermost/mattermost-webapp.git","clone_url":"https://github.com/mattermost/mattermost-webapp.git","svn_url":"https://github.com/mattermost/mattermost-webapp","homepage":null,"size":99044,"stargazers_count":155,"watchers_count":155,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":315,"mirror_url":null,"archived":false,"open_issues_count":26,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":315,"open_issues":26,"watchers":155,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/982"},"html":{"href":"https://github.com/mattermost/mattermost-webapp/pull/982"},"issue":{"href":"https://api.github.com/repos/mattermost/mattermost-webapp/issues/982"},"comments":{"href":"https://api.github.com/repos/mattermost/mattermost-webapp/issues/982/comments"},"review_comments":{"href":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/982/comments"},"review_comment":{"href":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mattermost/mattermost-webapp/pulls/982/commits"},"statuses":{"href":"https://api.github.com/repos/mattermost/mattermost-webapp/statuses/1fd586490fbda0c8c8ef596502a181fb24a9424a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"saturninoabril"}}