{"action":"created","comment":{"url":"https://api.github.com/repos/Yoast/wordpress-seo/pulls/comments/65354782","id":65354782,"diff_hunk":"@@ -0,0 +1,74 @@\n+var contentScoreName = 'content';\n+var keywordScoreName = 'keyword';\n+var notAvailableStatus = 'na';\n+var scoreDescriptionClass = 'score-text';\n+var imageScoreClass = 'image yoast-logo svg';\n+\n+(function( $ ) {\n+\t'use strict';\n+\t/**\n+\t * Converts the first letter to uppercase in a string.\n+\t * @returns {string} The string with the first letter uppercased.\n+\t */\n+\tString.prototype.ucfirst = function () {\n+\t\treturn this.charAt( 0 ).toUpperCase() + this.substr( 1 );\n+\t};\n+\n+\t/**\n+\t * Creates a text with the label and description for a seo score.\n+\t * @param {String} scoreType The type of score, this is used for the label.\n+\t * @param {String} status The status for the score, this is the descriptive status text.\n+\t * @returns {String} A string with label and description with correct text decoration.\n+\t */\n+\tfunction createSeoScoreLabel( scoreType, status ) {","path":"js/src/ui/publishBox.js","position":23,"original_position":23,"commit_id":"bb874d8a729ebf2336fcad73cfbfde4c8ba56cb4","original_commit_id":"ef3a2b7bfd64b184c4d27019831d6eb48a53671d","user":{"login":"jcomack","id":4181340,"avatar_url":"https://avatars.githubusercontent.com/u/4181340?v=3","gravatar_id":"","url":"https://api.github.com/users/jcomack","html_url":"https://github.com/jcomack","followers_url":"https://api.github.com/users/jcomack/followers","following_url":"https://api.github.com/users/jcomack/following{/other_user}","gists_url":"https://api.github.com/users/jcomack/gists{/gist_id}","starred_url":"https://api.github.com/users/jcomack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcomack/subscriptions","organizations_url":"https://api.github.com/users/jcomack/orgs","repos_url":"https://api.github.com/users/jcomack/repos","events_url":"https://api.github.com/users/jcomack/events{/privacy}","received_events_url":"https://api.github.com/users/jcomack/received_events","type":"User","site_admin":false},"body":"Generally we maintain the `var createSeoScoreLabel = function( scoreType, status )` notation when defining functions.\r\n\r\nP.S. SEO should be capitalized ;)","created_at":"2016-06-01T12:59:41Z","updated_at":"2016-06-01T12:59:41Z","html_url":"https://github.com/Yoast/wordpress-seo/pull/4736#discussion_r65354782","pull_request_url":"https://api.github.com/repos/Yoast/wordpress-seo/pulls/4736","_links":{"self":{"href":"https://api.github.com/repos/Yoast/wordpress-seo/pulls/comments/65354782"},"html":{"href":"https://github.com/Yoast/wordpress-seo/pull/4736#discussion_r65354782"},"pull_request":{"href":"https://api.github.com/repos/Yoast/wordpress-seo/pulls/4736"}}},"pull_request":{"url":"https://api.github.com/repos/Yoast/wordpress-seo/pulls/4736","id":72154194,"html_url":"https://github.com/Yoast/wordpress-seo/pull/4736","diff_url":"https://github.com/Yoast/wordpress-seo/pull/4736.diff","patch_url":"https://github.com/Yoast/wordpress-seo/pull/4736.patch","issue_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/4736","number":4736,"state":"open","locked":false,"title":"RW/postscores in publishbox","user":{"login":"rensw90","id":7293908,"avatar_url":"https://avatars.githubusercontent.com/u/7293908?v=3","gravatar_id":"","url":"https://api.github.com/users/rensw90","html_url":"https://github.com/rensw90","followers_url":"https://api.github.com/users/rensw90/followers","following_url":"https://api.github.com/users/rensw90/following{/other_user}","gists_url":"https://api.github.com/users/rensw90/gists{/gist_id}","starred_url":"https://api.github.com/users/rensw90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rensw90/subscriptions","organizations_url":"https://api.github.com/users/rensw90/orgs","repos_url":"https://api.github.com/users/rensw90/repos","events_url":"https://api.github.com/users/rensw90/events{/privacy}","received_events_url":"https://api.github.com/users/rensw90/received_events","type":"User","site_admin":false},"body":"Implemented two separate scores in the publish box.\n\nFixes #4641 \n\nTesting: \n1. Create new post.\n2. Write a post and check if the scores in the publish box update and the logo’s change color on the score.\n3. Test several situations with updating, refreshing etc..\nAlso check if the score in the adminbar and the metabox updates and is the same as the scores in the publish box.","created_at":"2016-06-01T10:08:53Z","updated_at":"2016-06-01T12:59:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"98d2dbf9d10285eb27706400364fe283343a9fdc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Yoast/wordpress-seo/pulls/4736/commits","review_comments_url":"https://api.github.com/repos/Yoast/wordpress-seo/pulls/4736/comments","review_comment_url":"https://api.github.com/repos/Yoast/wordpress-seo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/4736/comments","statuses_url":"https://api.github.com/repos/Yoast/wordpress-seo/statuses/bb874d8a729ebf2336fcad73cfbfde4c8ba56cb4","head":{"label":"Yoast:RW/postscores-in-publishbox","ref":"RW/postscores-in-publishbox","sha":"bb874d8a729ebf2336fcad73cfbfde4c8ba56cb4","user":{"login":"Yoast","id":4690436,"avatar_url":"https://avatars.githubusercontent.com/u/4690436?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoast","html_url":"https://github.com/Yoast","followers_url":"https://api.github.com/users/Yoast/followers","following_url":"https://api.github.com/users/Yoast/following{/other_user}","gists_url":"https://api.github.com/users/Yoast/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoast/subscriptions","organizations_url":"https://api.github.com/users/Yoast/orgs","repos_url":"https://api.github.com/users/Yoast/repos","events_url":"https://api.github.com/users/Yoast/events{/privacy}","received_events_url":"https://api.github.com/users/Yoast/received_events","type":"Organization","site_admin":false},"repo":{"id":6723399,"name":"wordpress-seo","full_name":"Yoast/wordpress-seo","owner":{"login":"Yoast","id":4690436,"avatar_url":"https://avatars.githubusercontent.com/u/4690436?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoast","html_url":"https://github.com/Yoast","followers_url":"https://api.github.com/users/Yoast/followers","following_url":"https://api.github.com/users/Yoast/following{/other_user}","gists_url":"https://api.github.com/users/Yoast/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoast/subscriptions","organizations_url":"https://api.github.com/users/Yoast/orgs","repos_url":"https://api.github.com/users/Yoast/repos","events_url":"https://api.github.com/users/Yoast/events{/privacy}","received_events_url":"https://api.github.com/users/Yoast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yoast/wordpress-seo","description":"Yoast SEO for WordPress","fork":false,"url":"https://api.github.com/repos/Yoast/wordpress-seo","forks_url":"https://api.github.com/repos/Yoast/wordpress-seo/forks","keys_url":"https://api.github.com/repos/Yoast/wordpress-seo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yoast/wordpress-seo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yoast/wordpress-seo/teams","hooks_url":"https://api.github.com/repos/Yoast/wordpress-seo/hooks","issue_events_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/events{/number}","events_url":"https://api.github.com/repos/Yoast/wordpress-seo/events","assignees_url":"https://api.github.com/repos/Yoast/wordpress-seo/assignees{/user}","branches_url":"https://api.github.com/repos/Yoast/wordpress-seo/branches{/branch}","tags_url":"https://api.github.com/repos/Yoast/wordpress-seo/tags","blobs_url":"https://api.github.com/repos/Yoast/wordpress-seo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yoast/wordpress-seo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yoast/wordpress-seo/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yoast/wordpress-seo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yoast/wordpress-seo/statuses/{sha}","languages_url":"https://api.github.com/repos/Yoast/wordpress-seo/languages","stargazers_url":"https://api.github.com/repos/Yoast/wordpress-seo/stargazers","contributors_url":"https://api.github.com/repos/Yoast/wordpress-seo/contributors","subscribers_url":"https://api.github.com/repos/Yoast/wordpress-seo/subscribers","subscription_url":"https://api.github.com/repos/Yoast/wordpress-seo/subscription","commits_url":"https://api.github.com/repos/Yoast/wordpress-seo/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yoast/wordpress-seo/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yoast/wordpress-seo/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yoast/wordpress-seo/contents/{+path}","compare_url":"https://api.github.com/repos/Yoast/wordpress-seo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yoast/wordpress-seo/merges","archive_url":"https://api.github.com/repos/Yoast/wordpress-seo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yoast/wordpress-seo/downloads","issues_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues{/number}","pulls_url":"https://api.github.com/repos/Yoast/wordpress-seo/pulls{/number}","milestones_url":"https://api.github.com/repos/Yoast/wordpress-seo/milestones{/number}","notifications_url":"https://api.github.com/repos/Yoast/wordpress-seo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yoast/wordpress-seo/labels{/name}","releases_url":"https://api.github.com/repos/Yoast/wordpress-seo/releases{/id}","deployments_url":"https://api.github.com/repos/Yoast/wordpress-seo/deployments","created_at":"2012-11-16T15:16:29Z","updated_at":"2016-05-31T09:24:09Z","pushed_at":"2016-06-01T12:56:02Z","git_url":"git://github.com/Yoast/wordpress-seo.git","ssh_url":"git@github.com:Yoast/wordpress-seo.git","clone_url":"https://github.com/Yoast/wordpress-seo.git","svn_url":"https://github.com/Yoast/wordpress-seo","homepage":"http://yoast.com/wordpress/seo/","size":39727,"stargazers_count":638,"watchers_count":638,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":383,"mirror_url":null,"open_issues_count":562,"forks":383,"open_issues":562,"watchers":638,"default_branch":"trunk"}},"base":{"label":"Yoast:trunk","ref":"trunk","sha":"7806958d01a6f456584f1769108c99464b65772e","user":{"login":"Yoast","id":4690436,"avatar_url":"https://avatars.githubusercontent.com/u/4690436?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoast","html_url":"https://github.com/Yoast","followers_url":"https://api.github.com/users/Yoast/followers","following_url":"https://api.github.com/users/Yoast/following{/other_user}","gists_url":"https://api.github.com/users/Yoast/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoast/subscriptions","organizations_url":"https://api.github.com/users/Yoast/orgs","repos_url":"https://api.github.com/users/Yoast/repos","events_url":"https://api.github.com/users/Yoast/events{/privacy}","received_events_url":"https://api.github.com/users/Yoast/received_events","type":"Organization","site_admin":false},"repo":{"id":6723399,"name":"wordpress-seo","full_name":"Yoast/wordpress-seo","owner":{"login":"Yoast","id":4690436,"avatar_url":"https://avatars.githubusercontent.com/u/4690436?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoast","html_url":"https://github.com/Yoast","followers_url":"https://api.github.com/users/Yoast/followers","following_url":"https://api.github.com/users/Yoast/following{/other_user}","gists_url":"https://api.github.com/users/Yoast/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoast/subscriptions","organizations_url":"https://api.github.com/users/Yoast/orgs","repos_url":"https://api.github.com/users/Yoast/repos","events_url":"https://api.github.com/users/Yoast/events{/privacy}","received_events_url":"https://api.github.com/users/Yoast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yoast/wordpress-seo","description":"Yoast SEO for WordPress","fork":false,"url":"https://api.github.com/repos/Yoast/wordpress-seo","forks_url":"https://api.github.com/repos/Yoast/wordpress-seo/forks","keys_url":"https://api.github.com/repos/Yoast/wordpress-seo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yoast/wordpress-seo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yoast/wordpress-seo/teams","hooks_url":"https://api.github.com/repos/Yoast/wordpress-seo/hooks","issue_events_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/events{/number}","events_url":"https://api.github.com/repos/Yoast/wordpress-seo/events","assignees_url":"https://api.github.com/repos/Yoast/wordpress-seo/assignees{/user}","branches_url":"https://api.github.com/repos/Yoast/wordpress-seo/branches{/branch}","tags_url":"https://api.github.com/repos/Yoast/wordpress-seo/tags","blobs_url":"https://api.github.com/repos/Yoast/wordpress-seo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yoast/wordpress-seo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yoast/wordpress-seo/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yoast/wordpress-seo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yoast/wordpress-seo/statuses/{sha}","languages_url":"https://api.github.com/repos/Yoast/wordpress-seo/languages","stargazers_url":"https://api.github.com/repos/Yoast/wordpress-seo/stargazers","contributors_url":"https://api.github.com/repos/Yoast/wordpress-seo/contributors","subscribers_url":"https://api.github.com/repos/Yoast/wordpress-seo/subscribers","subscription_url":"https://api.github.com/repos/Yoast/wordpress-seo/subscription","commits_url":"https://api.github.com/repos/Yoast/wordpress-seo/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yoast/wordpress-seo/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yoast/wordpress-seo/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yoast/wordpress-seo/contents/{+path}","compare_url":"https://api.github.com/repos/Yoast/wordpress-seo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yoast/wordpress-seo/merges","archive_url":"https://api.github.com/repos/Yoast/wordpress-seo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yoast/wordpress-seo/downloads","issues_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues{/number}","pulls_url":"https://api.github.com/repos/Yoast/wordpress-seo/pulls{/number}","milestones_url":"https://api.github.com/repos/Yoast/wordpress-seo/milestones{/number}","notifications_url":"https://api.github.com/repos/Yoast/wordpress-seo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yoast/wordpress-seo/labels{/name}","releases_url":"https://api.github.com/repos/Yoast/wordpress-seo/releases{/id}","deployments_url":"https://api.github.com/repos/Yoast/wordpress-seo/deployments","created_at":"2012-11-16T15:16:29Z","updated_at":"2016-05-31T09:24:09Z","pushed_at":"2016-06-01T12:56:02Z","git_url":"git://github.com/Yoast/wordpress-seo.git","ssh_url":"git@github.com:Yoast/wordpress-seo.git","clone_url":"https://github.com/Yoast/wordpress-seo.git","svn_url":"https://github.com/Yoast/wordpress-seo","homepage":"http://yoast.com/wordpress/seo/","size":39727,"stargazers_count":638,"watchers_count":638,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":383,"mirror_url":null,"open_issues_count":562,"forks":383,"open_issues":562,"watchers":638,"default_branch":"trunk"}},"_links":{"self":{"href":"https://api.github.com/repos/Yoast/wordpress-seo/pulls/4736"},"html":{"href":"https://github.com/Yoast/wordpress-seo/pull/4736"},"issue":{"href":"https://api.github.com/repos/Yoast/wordpress-seo/issues/4736"},"comments":{"href":"https://api.github.com/repos/Yoast/wordpress-seo/issues/4736/comments"},"review_comments":{"href":"https://api.github.com/repos/Yoast/wordpress-seo/pulls/4736/comments"},"review_comment":{"href":"https://api.github.com/repos/Yoast/wordpress-seo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yoast/wordpress-seo/pulls/4736/commits"},"statuses":{"href":"https://api.github.com/repos/Yoast/wordpress-seo/statuses/bb874d8a729ebf2336fcad73cfbfde4c8ba56cb4"}}}}
{"actor":{"display_login":"jcomack"}}