{"action":"created","comment":{"url":"https://api.github.com/repos/konrad-bolesta/AJAX/pulls/comments/90077690","pull_request_review_id":10602470,"id":90077690,"diff_hunk":"@@ -1 +1,33 @@\n-﻿\n\\ No newline at end of file\n+﻿$(function(){\n+    var tweetLink = \"https://twitter.com/intent/tweet?text=\";\n+    var quoteUrl = \"http://api.forismatic.com/api/1.0/?method=getQuote&key=867576&format=jsonp&lang=en&jsonp=?\";\n+\n+    function getQuote() {\n+        $.getJSON(quoteUrl, createTweet);\n+    }\n+\n+    function createTweet(input) {\n+        if (!input.quoteAuthor.length) {\n+            input.quoteAuthor = \"Unknown author\";\n+        }\n+\n+        var tweetText = \"Quote of the day - \" + input.quoteText + \" Author: \" + input.quoteAuthor;\n+\n+        if (tweetText.length > 140) {\n+            getQuote();\n+        } else {\n+            var tweet = tweetLink + encodeURIComponent(tweetText);\n+            $(\".quote\").text(input.quoteText);\n+            $(\".author\").text(\"Author: \" + input.quoteAuthor);\n+            $(\".tweet\").attr(\"href\", tweet);\n+        }","path":"scripts.js","position":25,"original_position":25,"commit_id":"2a6e624658f15d40427ce0adcb100ee4a161beeb","original_commit_id":"2a6e624658f15d40427ce0adcb100ee4a161beeb","user":{"login":"mentor-kk","id":19983779,"avatar_url":"https://avatars.githubusercontent.com/u/19983779?v=3","gravatar_id":"","url":"https://api.github.com/users/mentor-kk","html_url":"https://github.com/mentor-kk","followers_url":"https://api.github.com/users/mentor-kk/followers","following_url":"https://api.github.com/users/mentor-kk/following{/other_user}","gists_url":"https://api.github.com/users/mentor-kk/gists{/gist_id}","starred_url":"https://api.github.com/users/mentor-kk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mentor-kk/subscriptions","organizations_url":"https://api.github.com/users/mentor-kk/orgs","repos_url":"https://api.github.com/users/mentor-kk/repos","events_url":"https://api.github.com/users/mentor-kk/events{/privacy}","received_events_url":"https://api.github.com/users/mentor-kk/received_events","type":"User","site_admin":false},"body":"miałbyś pomysł jak pozbyć się tego `else` ?","created_at":"2016-11-29T18:45:06Z","updated_at":"2016-11-29T18:45:08Z","html_url":"https://github.com/konrad-bolesta/AJAX/pull/2#discussion_r90077690","pull_request_url":"https://api.github.com/repos/konrad-bolesta/AJAX/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/konrad-bolesta/AJAX/pulls/comments/90077690"},"html":{"href":"https://github.com/konrad-bolesta/AJAX/pull/2#discussion_r90077690"},"pull_request":{"href":"https://api.github.com/repos/konrad-bolesta/AJAX/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/konrad-bolesta/AJAX/pulls/2","id":95421338,"html_url":"https://github.com/konrad-bolesta/AJAX/pull/2","diff_url":"https://github.com/konrad-bolesta/AJAX/pull/2.diff","patch_url":"https://github.com/konrad-bolesta/AJAX/pull/2.patch","issue_url":"https://api.github.com/repos/konrad-bolesta/AJAX/issues/2","number":2,"state":"open","locked":false,"title":"11.5","user":{"login":"konrad-bolesta","id":23171820,"avatar_url":"https://avatars.githubusercontent.com/u/23171820?v=3","gravatar_id":"","url":"https://api.github.com/users/konrad-bolesta","html_url":"https://github.com/konrad-bolesta","followers_url":"https://api.github.com/users/konrad-bolesta/followers","following_url":"https://api.github.com/users/konrad-bolesta/following{/other_user}","gists_url":"https://api.github.com/users/konrad-bolesta/gists{/gist_id}","starred_url":"https://api.github.com/users/konrad-bolesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konrad-bolesta/subscriptions","organizations_url":"https://api.github.com/users/konrad-bolesta/orgs","repos_url":"https://api.github.com/users/konrad-bolesta/repos","events_url":"https://api.github.com/users/konrad-bolesta/events{/privacy}","received_events_url":"https://api.github.com/users/konrad-bolesta/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-27T23:21:17Z","updated_at":"2016-11-29T18:45:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"03a07bf226c6da98af6ad74beb2b970afd7054e9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/konrad-bolesta/AJAX/pulls/2/commits","review_comments_url":"https://api.github.com/repos/konrad-bolesta/AJAX/pulls/2/comments","review_comment_url":"https://api.github.com/repos/konrad-bolesta/AJAX/pulls/comments{/number}","comments_url":"https://api.github.com/repos/konrad-bolesta/AJAX/issues/2/comments","statuses_url":"https://api.github.com/repos/konrad-bolesta/AJAX/statuses/2a6e624658f15d40427ce0adcb100ee4a161beeb","head":{"label":"konrad-bolesta:11.5","ref":"11.5","sha":"2a6e624658f15d40427ce0adcb100ee4a161beeb","user":{"login":"konrad-bolesta","id":23171820,"avatar_url":"https://avatars.githubusercontent.com/u/23171820?v=3","gravatar_id":"","url":"https://api.github.com/users/konrad-bolesta","html_url":"https://github.com/konrad-bolesta","followers_url":"https://api.github.com/users/konrad-bolesta/followers","following_url":"https://api.github.com/users/konrad-bolesta/following{/other_user}","gists_url":"https://api.github.com/users/konrad-bolesta/gists{/gist_id}","starred_url":"https://api.github.com/users/konrad-bolesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konrad-bolesta/subscriptions","organizations_url":"https://api.github.com/users/konrad-bolesta/orgs","repos_url":"https://api.github.com/users/konrad-bolesta/repos","events_url":"https://api.github.com/users/konrad-bolesta/events{/privacy}","received_events_url":"https://api.github.com/users/konrad-bolesta/received_events","type":"User","site_admin":false},"repo":{"id":74920265,"name":"AJAX","full_name":"konrad-bolesta/AJAX","owner":{"login":"konrad-bolesta","id":23171820,"avatar_url":"https://avatars.githubusercontent.com/u/23171820?v=3","gravatar_id":"","url":"https://api.github.com/users/konrad-bolesta","html_url":"https://github.com/konrad-bolesta","followers_url":"https://api.github.com/users/konrad-bolesta/followers","following_url":"https://api.github.com/users/konrad-bolesta/following{/other_user}","gists_url":"https://api.github.com/users/konrad-bolesta/gists{/gist_id}","starred_url":"https://api.github.com/users/konrad-bolesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konrad-bolesta/subscriptions","organizations_url":"https://api.github.com/users/konrad-bolesta/orgs","repos_url":"https://api.github.com/users/konrad-bolesta/repos","events_url":"https://api.github.com/users/konrad-bolesta/events{/privacy}","received_events_url":"https://api.github.com/users/konrad-bolesta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/konrad-bolesta/AJAX","description":null,"fork":false,"url":"https://api.github.com/repos/konrad-bolesta/AJAX","forks_url":"https://api.github.com/repos/konrad-bolesta/AJAX/forks","keys_url":"https://api.github.com/repos/konrad-bolesta/AJAX/keys{/key_id}","collaborators_url":"https://api.github.com/repos/konrad-bolesta/AJAX/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/konrad-bolesta/AJAX/teams","hooks_url":"https://api.github.com/repos/konrad-bolesta/AJAX/hooks","issue_events_url":"https://api.github.com/repos/konrad-bolesta/AJAX/issues/events{/number}","events_url":"https://api.github.com/repos/konrad-bolesta/AJAX/events","assignees_url":"https://api.github.com/repos/konrad-bolesta/AJAX/assignees{/user}","branches_url":"https://api.github.com/repos/konrad-bolesta/AJAX/branches{/branch}","tags_url":"https://api.github.com/repos/konrad-bolesta/AJAX/tags","blobs_url":"https://api.github.com/repos/konrad-bolesta/AJAX/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/konrad-bolesta/AJAX/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/konrad-bolesta/AJAX/git/refs{/sha}","trees_url":"https://api.github.com/repos/konrad-bolesta/AJAX/git/trees{/sha}","statuses_url":"https://api.github.com/repos/konrad-bolesta/AJAX/statuses/{sha}","languages_url":"https://api.github.com/repos/konrad-bolesta/AJAX/languages","stargazers_url":"https://api.github.com/repos/konrad-bolesta/AJAX/stargazers","contributors_url":"https://api.github.com/repos/konrad-bolesta/AJAX/contributors","subscribers_url":"https://api.github.com/repos/konrad-bolesta/AJAX/subscribers","subscription_url":"https://api.github.com/repos/konrad-bolesta/AJAX/subscription","commits_url":"https://api.github.com/repos/konrad-bolesta/AJAX/commits{/sha}","git_commits_url":"https://api.github.com/repos/konrad-bolesta/AJAX/git/commits{/sha}","comments_url":"https://api.github.com/repos/konrad-bolesta/AJAX/comments{/number}","issue_comment_url":"https://api.github.com/repos/konrad-bolesta/AJAX/issues/comments{/number}","contents_url":"https://api.github.com/repos/konrad-bolesta/AJAX/contents/{+path}","compare_url":"https://api.github.com/repos/konrad-bolesta/AJAX/compare/{base}...{head}","merges_url":"https://api.github.com/repos/konrad-bolesta/AJAX/merges","archive_url":"https://api.github.com/repos/konrad-bolesta/AJAX/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/konrad-bolesta/AJAX/downloads","issues_url":"https://api.github.com/repos/konrad-bolesta/AJAX/issues{/number}","pulls_url":"https://api.github.com/repos/konrad-bolesta/AJAX/pulls{/number}","milestones_url":"https://api.github.com/repos/konrad-bolesta/AJAX/milestones{/number}","notifications_url":"https://api.github.com/repos/konrad-bolesta/AJAX/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/konrad-bolesta/AJAX/labels{/name}","releases_url":"https://api.github.com/repos/konrad-bolesta/AJAX/releases{/id}","deployments_url":"https://api.github.com/repos/konrad-bolesta/AJAX/deployments","created_at":"2016-11-27T23:15:41Z","updated_at":"2016-11-27T23:16:34Z","pushed_at":"2016-11-28T14:01:25Z","git_url":"git://github.com/konrad-bolesta/AJAX.git","ssh_url":"git@github.com:konrad-bolesta/AJAX.git","clone_url":"https://github.com/konrad-bolesta/AJAX.git","svn_url":"https://github.com/konrad-bolesta/AJAX","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"konrad-bolesta:master","ref":"master","sha":"53239915d38790b6f2041b3bad318009c5465709","user":{"login":"konrad-bolesta","id":23171820,"avatar_url":"https://avatars.githubusercontent.com/u/23171820?v=3","gravatar_id":"","url":"https://api.github.com/users/konrad-bolesta","html_url":"https://github.com/konrad-bolesta","followers_url":"https://api.github.com/users/konrad-bolesta/followers","following_url":"https://api.github.com/users/konrad-bolesta/following{/other_user}","gists_url":"https://api.github.com/users/konrad-bolesta/gists{/gist_id}","starred_url":"https://api.github.com/users/konrad-bolesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konrad-bolesta/subscriptions","organizations_url":"https://api.github.com/users/konrad-bolesta/orgs","repos_url":"https://api.github.com/users/konrad-bolesta/repos","events_url":"https://api.github.com/users/konrad-bolesta/events{/privacy}","received_events_url":"https://api.github.com/users/konrad-bolesta/received_events","type":"User","site_admin":false},"repo":{"id":74920265,"name":"AJAX","full_name":"konrad-bolesta/AJAX","owner":{"login":"konrad-bolesta","id":23171820,"avatar_url":"https://avatars.githubusercontent.com/u/23171820?v=3","gravatar_id":"","url":"https://api.github.com/users/konrad-bolesta","html_url":"https://github.com/konrad-bolesta","followers_url":"https://api.github.com/users/konrad-bolesta/followers","following_url":"https://api.github.com/users/konrad-bolesta/following{/other_user}","gists_url":"https://api.github.com/users/konrad-bolesta/gists{/gist_id}","starred_url":"https://api.github.com/users/konrad-bolesta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konrad-bolesta/subscriptions","organizations_url":"https://api.github.com/users/konrad-bolesta/orgs","repos_url":"https://api.github.com/users/konrad-bolesta/repos","events_url":"https://api.github.com/users/konrad-bolesta/events{/privacy}","received_events_url":"https://api.github.com/users/konrad-bolesta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/konrad-bolesta/AJAX","description":null,"fork":false,"url":"https://api.github.com/repos/konrad-bolesta/AJAX","forks_url":"https://api.github.com/repos/konrad-bolesta/AJAX/forks","keys_url":"https://api.github.com/repos/konrad-bolesta/AJAX/keys{/key_id}","collaborators_url":"https://api.github.com/repos/konrad-bolesta/AJAX/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/konrad-bolesta/AJAX/teams","hooks_url":"https://api.github.com/repos/konrad-bolesta/AJAX/hooks","issue_events_url":"https://api.github.com/repos/konrad-bolesta/AJAX/issues/events{/number}","events_url":"https://api.github.com/repos/konrad-bolesta/AJAX/events","assignees_url":"https://api.github.com/repos/konrad-bolesta/AJAX/assignees{/user}","branches_url":"https://api.github.com/repos/konrad-bolesta/AJAX/branches{/branch}","tags_url":"https://api.github.com/repos/konrad-bolesta/AJAX/tags","blobs_url":"https://api.github.com/repos/konrad-bolesta/AJAX/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/konrad-bolesta/AJAX/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/konrad-bolesta/AJAX/git/refs{/sha}","trees_url":"https://api.github.com/repos/konrad-bolesta/AJAX/git/trees{/sha}","statuses_url":"https://api.github.com/repos/konrad-bolesta/AJAX/statuses/{sha}","languages_url":"https://api.github.com/repos/konrad-bolesta/AJAX/languages","stargazers_url":"https://api.github.com/repos/konrad-bolesta/AJAX/stargazers","contributors_url":"https://api.github.com/repos/konrad-bolesta/AJAX/contributors","subscribers_url":"https://api.github.com/repos/konrad-bolesta/AJAX/subscribers","subscription_url":"https://api.github.com/repos/konrad-bolesta/AJAX/subscription","commits_url":"https://api.github.com/repos/konrad-bolesta/AJAX/commits{/sha}","git_commits_url":"https://api.github.com/repos/konrad-bolesta/AJAX/git/commits{/sha}","comments_url":"https://api.github.com/repos/konrad-bolesta/AJAX/comments{/number}","issue_comment_url":"https://api.github.com/repos/konrad-bolesta/AJAX/issues/comments{/number}","contents_url":"https://api.github.com/repos/konrad-bolesta/AJAX/contents/{+path}","compare_url":"https://api.github.com/repos/konrad-bolesta/AJAX/compare/{base}...{head}","merges_url":"https://api.github.com/repos/konrad-bolesta/AJAX/merges","archive_url":"https://api.github.com/repos/konrad-bolesta/AJAX/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/konrad-bolesta/AJAX/downloads","issues_url":"https://api.github.com/repos/konrad-bolesta/AJAX/issues{/number}","pulls_url":"https://api.github.com/repos/konrad-bolesta/AJAX/pulls{/number}","milestones_url":"https://api.github.com/repos/konrad-bolesta/AJAX/milestones{/number}","notifications_url":"https://api.github.com/repos/konrad-bolesta/AJAX/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/konrad-bolesta/AJAX/labels{/name}","releases_url":"https://api.github.com/repos/konrad-bolesta/AJAX/releases{/id}","deployments_url":"https://api.github.com/repos/konrad-bolesta/AJAX/deployments","created_at":"2016-11-27T23:15:41Z","updated_at":"2016-11-27T23:16:34Z","pushed_at":"2016-11-28T14:01:25Z","git_url":"git://github.com/konrad-bolesta/AJAX.git","ssh_url":"git@github.com:konrad-bolesta/AJAX.git","clone_url":"https://github.com/konrad-bolesta/AJAX.git","svn_url":"https://github.com/konrad-bolesta/AJAX","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/konrad-bolesta/AJAX/pulls/2"},"html":{"href":"https://github.com/konrad-bolesta/AJAX/pull/2"},"issue":{"href":"https://api.github.com/repos/konrad-bolesta/AJAX/issues/2"},"comments":{"href":"https://api.github.com/repos/konrad-bolesta/AJAX/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/konrad-bolesta/AJAX/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/konrad-bolesta/AJAX/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/konrad-bolesta/AJAX/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/konrad-bolesta/AJAX/statuses/2a6e624658f15d40427ce0adcb100ee4a161beeb"}}}}
{"actor":{"display_login":"mentor-kk"}}