{"action":"created","comment":{"url":"https://api.github.com/repos/akshita27/urlShortener/pulls/comments/66742223","id":66742223,"diff_hunk":"@@ -0,0 +1,42 @@\n+<!DOCTYPE html>\n+\n+<html lang=\"en\">\n+<head>\n+    <meta charset=\"utf-8\">\n+</head>\n+<body>\n+<script type='text/javascript' src='http://code.jquery.com/jquery-1.8.2.js'></script>\n+    <script type=\"text/javascript\">\n+        $(document).ready(function() {\n+            $(\"#button\").click(function() {\n+                    var input_string = $(\"#forminput\").val();\n+                    $.ajax({\n+                        url : \"/home/shorturl/\", \n+                        type : \"POST\",\n+                        dataType: \"json\", \n+                        data : {\n+                            client_response : input_string,\n+                            csrfmiddlewaretoken: '{{ csrf_token }}'\n+                            },\n+                        success : function(json) {\n+                            $('#result').append( 'Short Url: ' + json.server_response);\n+                        },\n+                        error : function(xhr,errmsg,err) {\n+                            alert(xhr.status + \": \" + xhr.responseText);\n+                        }\n+                    });\n+                    return false;\n+            });\n+        });\n+</script>\n+<form method=\"post\" name=\"example form\" >\n+        {% csrf_token %}","path":"templates/dashboard.html","position":33,"original_position":33,"commit_id":"f778c4062e841cb2e4ca8b5a3dc55ceae5bca416","original_commit_id":"f778c4062e841cb2e4ca8b5a3dc55ceae5bca416","user":{"login":"dash1291","id":870428,"avatar_url":"https://avatars.githubusercontent.com/u/870428?v=3","gravatar_id":"","url":"https://api.github.com/users/dash1291","html_url":"https://github.com/dash1291","followers_url":"https://api.github.com/users/dash1291/followers","following_url":"https://api.github.com/users/dash1291/following{/other_user}","gists_url":"https://api.github.com/users/dash1291/gists{/gist_id}","starred_url":"https://api.github.com/users/dash1291/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dash1291/subscriptions","organizations_url":"https://api.github.com/users/dash1291/orgs","repos_url":"https://api.github.com/users/dash1291/repos","events_url":"https://api.github.com/users/dash1291/events{/privacy}","received_events_url":"https://api.github.com/users/dash1291/received_events","type":"User","site_admin":false},"body":"use consistent spaces everywhere","created_at":"2016-06-13T05:47:08Z","updated_at":"2016-06-13T05:47:08Z","html_url":"https://github.com/akshita27/urlShortener/pull/2#discussion_r66742223","pull_request_url":"https://api.github.com/repos/akshita27/urlShortener/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/akshita27/urlShortener/pulls/comments/66742223"},"html":{"href":"https://github.com/akshita27/urlShortener/pull/2#discussion_r66742223"},"pull_request":{"href":"https://api.github.com/repos/akshita27/urlShortener/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/akshita27/urlShortener/pulls/2","id":73524794,"html_url":"https://github.com/akshita27/urlShortener/pull/2","diff_url":"https://github.com/akshita27/urlShortener/pull/2.diff","patch_url":"https://github.com/akshita27/urlShortener/pull/2.patch","issue_url":"https://api.github.com/repos/akshita27/urlShortener/issues/2","number":2,"state":"open","locked":false,"title":"Dashboard: v1","user":{"login":"akshita27","id":8623004,"avatar_url":"https://avatars.githubusercontent.com/u/8623004?v=3","gravatar_id":"","url":"https://api.github.com/users/akshita27","html_url":"https://github.com/akshita27","followers_url":"https://api.github.com/users/akshita27/followers","following_url":"https://api.github.com/users/akshita27/following{/other_user}","gists_url":"https://api.github.com/users/akshita27/gists{/gist_id}","starred_url":"https://api.github.com/users/akshita27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshita27/subscriptions","organizations_url":"https://api.github.com/users/akshita27/orgs","repos_url":"https://api.github.com/users/akshita27/repos","events_url":"https://api.github.com/users/akshita27/events{/privacy}","received_events_url":"https://api.github.com/users/akshita27/received_events","type":"User","site_admin":false},"body":"Ajax used.","created_at":"2016-06-13T05:44:03Z","updated_at":"2016-06-13T05:47:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b2ee904f9209f734d077f855250cc32753118572","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/akshita27/urlShortener/pulls/2/commits","review_comments_url":"https://api.github.com/repos/akshita27/urlShortener/pulls/2/comments","review_comment_url":"https://api.github.com/repos/akshita27/urlShortener/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akshita27/urlShortener/issues/2/comments","statuses_url":"https://api.github.com/repos/akshita27/urlShortener/statuses/f778c4062e841cb2e4ca8b5a3dc55ceae5bca416","head":{"label":"akshita27:version1","ref":"version1","sha":"f778c4062e841cb2e4ca8b5a3dc55ceae5bca416","user":{"login":"akshita27","id":8623004,"avatar_url":"https://avatars.githubusercontent.com/u/8623004?v=3","gravatar_id":"","url":"https://api.github.com/users/akshita27","html_url":"https://github.com/akshita27","followers_url":"https://api.github.com/users/akshita27/followers","following_url":"https://api.github.com/users/akshita27/following{/other_user}","gists_url":"https://api.github.com/users/akshita27/gists{/gist_id}","starred_url":"https://api.github.com/users/akshita27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshita27/subscriptions","organizations_url":"https://api.github.com/users/akshita27/orgs","repos_url":"https://api.github.com/users/akshita27/repos","events_url":"https://api.github.com/users/akshita27/events{/privacy}","received_events_url":"https://api.github.com/users/akshita27/received_events","type":"User","site_admin":false},"repo":{"id":60863029,"name":"urlShortener","full_name":"akshita27/urlShortener","owner":{"login":"akshita27","id":8623004,"avatar_url":"https://avatars.githubusercontent.com/u/8623004?v=3","gravatar_id":"","url":"https://api.github.com/users/akshita27","html_url":"https://github.com/akshita27","followers_url":"https://api.github.com/users/akshita27/followers","following_url":"https://api.github.com/users/akshita27/following{/other_user}","gists_url":"https://api.github.com/users/akshita27/gists{/gist_id}","starred_url":"https://api.github.com/users/akshita27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshita27/subscriptions","organizations_url":"https://api.github.com/users/akshita27/orgs","repos_url":"https://api.github.com/users/akshita27/repos","events_url":"https://api.github.com/users/akshita27/events{/privacy}","received_events_url":"https://api.github.com/users/akshita27/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akshita27/urlShortener","description":"","fork":false,"url":"https://api.github.com/repos/akshita27/urlShortener","forks_url":"https://api.github.com/repos/akshita27/urlShortener/forks","keys_url":"https://api.github.com/repos/akshita27/urlShortener/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akshita27/urlShortener/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akshita27/urlShortener/teams","hooks_url":"https://api.github.com/repos/akshita27/urlShortener/hooks","issue_events_url":"https://api.github.com/repos/akshita27/urlShortener/issues/events{/number}","events_url":"https://api.github.com/repos/akshita27/urlShortener/events","assignees_url":"https://api.github.com/repos/akshita27/urlShortener/assignees{/user}","branches_url":"https://api.github.com/repos/akshita27/urlShortener/branches{/branch}","tags_url":"https://api.github.com/repos/akshita27/urlShortener/tags","blobs_url":"https://api.github.com/repos/akshita27/urlShortener/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akshita27/urlShortener/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akshita27/urlShortener/git/refs{/sha}","trees_url":"https://api.github.com/repos/akshita27/urlShortener/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akshita27/urlShortener/statuses/{sha}","languages_url":"https://api.github.com/repos/akshita27/urlShortener/languages","stargazers_url":"https://api.github.com/repos/akshita27/urlShortener/stargazers","contributors_url":"https://api.github.com/repos/akshita27/urlShortener/contributors","subscribers_url":"https://api.github.com/repos/akshita27/urlShortener/subscribers","subscription_url":"https://api.github.com/repos/akshita27/urlShortener/subscription","commits_url":"https://api.github.com/repos/akshita27/urlShortener/commits{/sha}","git_commits_url":"https://api.github.com/repos/akshita27/urlShortener/git/commits{/sha}","comments_url":"https://api.github.com/repos/akshita27/urlShortener/comments{/number}","issue_comment_url":"https://api.github.com/repos/akshita27/urlShortener/issues/comments{/number}","contents_url":"https://api.github.com/repos/akshita27/urlShortener/contents/{+path}","compare_url":"https://api.github.com/repos/akshita27/urlShortener/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akshita27/urlShortener/merges","archive_url":"https://api.github.com/repos/akshita27/urlShortener/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akshita27/urlShortener/downloads","issues_url":"https://api.github.com/repos/akshita27/urlShortener/issues{/number}","pulls_url":"https://api.github.com/repos/akshita27/urlShortener/pulls{/number}","milestones_url":"https://api.github.com/repos/akshita27/urlShortener/milestones{/number}","notifications_url":"https://api.github.com/repos/akshita27/urlShortener/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akshita27/urlShortener/labels{/name}","releases_url":"https://api.github.com/repos/akshita27/urlShortener/releases{/id}","deployments_url":"https://api.github.com/repos/akshita27/urlShortener/deployments","created_at":"2016-06-10T16:47:37Z","updated_at":"2016-06-11T14:12:24Z","pushed_at":"2016-06-13T05:44:03Z","git_url":"git://github.com/akshita27/urlShortener.git","ssh_url":"git@github.com:akshita27/urlShortener.git","clone_url":"https://github.com/akshita27/urlShortener.git","svn_url":"https://github.com/akshita27/urlShortener","homepage":null,"size":16,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"akshita27:master","ref":"master","sha":"fa2cb0a49263ed42631f9db67a8b5a64d4ddb7f3","user":{"login":"akshita27","id":8623004,"avatar_url":"https://avatars.githubusercontent.com/u/8623004?v=3","gravatar_id":"","url":"https://api.github.com/users/akshita27","html_url":"https://github.com/akshita27","followers_url":"https://api.github.com/users/akshita27/followers","following_url":"https://api.github.com/users/akshita27/following{/other_user}","gists_url":"https://api.github.com/users/akshita27/gists{/gist_id}","starred_url":"https://api.github.com/users/akshita27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshita27/subscriptions","organizations_url":"https://api.github.com/users/akshita27/orgs","repos_url":"https://api.github.com/users/akshita27/repos","events_url":"https://api.github.com/users/akshita27/events{/privacy}","received_events_url":"https://api.github.com/users/akshita27/received_events","type":"User","site_admin":false},"repo":{"id":60863029,"name":"urlShortener","full_name":"akshita27/urlShortener","owner":{"login":"akshita27","id":8623004,"avatar_url":"https://avatars.githubusercontent.com/u/8623004?v=3","gravatar_id":"","url":"https://api.github.com/users/akshita27","html_url":"https://github.com/akshita27","followers_url":"https://api.github.com/users/akshita27/followers","following_url":"https://api.github.com/users/akshita27/following{/other_user}","gists_url":"https://api.github.com/users/akshita27/gists{/gist_id}","starred_url":"https://api.github.com/users/akshita27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshita27/subscriptions","organizations_url":"https://api.github.com/users/akshita27/orgs","repos_url":"https://api.github.com/users/akshita27/repos","events_url":"https://api.github.com/users/akshita27/events{/privacy}","received_events_url":"https://api.github.com/users/akshita27/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akshita27/urlShortener","description":"","fork":false,"url":"https://api.github.com/repos/akshita27/urlShortener","forks_url":"https://api.github.com/repos/akshita27/urlShortener/forks","keys_url":"https://api.github.com/repos/akshita27/urlShortener/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akshita27/urlShortener/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akshita27/urlShortener/teams","hooks_url":"https://api.github.com/repos/akshita27/urlShortener/hooks","issue_events_url":"https://api.github.com/repos/akshita27/urlShortener/issues/events{/number}","events_url":"https://api.github.com/repos/akshita27/urlShortener/events","assignees_url":"https://api.github.com/repos/akshita27/urlShortener/assignees{/user}","branches_url":"https://api.github.com/repos/akshita27/urlShortener/branches{/branch}","tags_url":"https://api.github.com/repos/akshita27/urlShortener/tags","blobs_url":"https://api.github.com/repos/akshita27/urlShortener/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akshita27/urlShortener/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akshita27/urlShortener/git/refs{/sha}","trees_url":"https://api.github.com/repos/akshita27/urlShortener/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akshita27/urlShortener/statuses/{sha}","languages_url":"https://api.github.com/repos/akshita27/urlShortener/languages","stargazers_url":"https://api.github.com/repos/akshita27/urlShortener/stargazers","contributors_url":"https://api.github.com/repos/akshita27/urlShortener/contributors","subscribers_url":"https://api.github.com/repos/akshita27/urlShortener/subscribers","subscription_url":"https://api.github.com/repos/akshita27/urlShortener/subscription","commits_url":"https://api.github.com/repos/akshita27/urlShortener/commits{/sha}","git_commits_url":"https://api.github.com/repos/akshita27/urlShortener/git/commits{/sha}","comments_url":"https://api.github.com/repos/akshita27/urlShortener/comments{/number}","issue_comment_url":"https://api.github.com/repos/akshita27/urlShortener/issues/comments{/number}","contents_url":"https://api.github.com/repos/akshita27/urlShortener/contents/{+path}","compare_url":"https://api.github.com/repos/akshita27/urlShortener/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akshita27/urlShortener/merges","archive_url":"https://api.github.com/repos/akshita27/urlShortener/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akshita27/urlShortener/downloads","issues_url":"https://api.github.com/repos/akshita27/urlShortener/issues{/number}","pulls_url":"https://api.github.com/repos/akshita27/urlShortener/pulls{/number}","milestones_url":"https://api.github.com/repos/akshita27/urlShortener/milestones{/number}","notifications_url":"https://api.github.com/repos/akshita27/urlShortener/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akshita27/urlShortener/labels{/name}","releases_url":"https://api.github.com/repos/akshita27/urlShortener/releases{/id}","deployments_url":"https://api.github.com/repos/akshita27/urlShortener/deployments","created_at":"2016-06-10T16:47:37Z","updated_at":"2016-06-11T14:12:24Z","pushed_at":"2016-06-13T05:44:03Z","git_url":"git://github.com/akshita27/urlShortener.git","ssh_url":"git@github.com:akshita27/urlShortener.git","clone_url":"https://github.com/akshita27/urlShortener.git","svn_url":"https://github.com/akshita27/urlShortener","homepage":null,"size":16,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/akshita27/urlShortener/pulls/2"},"html":{"href":"https://github.com/akshita27/urlShortener/pull/2"},"issue":{"href":"https://api.github.com/repos/akshita27/urlShortener/issues/2"},"comments":{"href":"https://api.github.com/repos/akshita27/urlShortener/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/akshita27/urlShortener/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/akshita27/urlShortener/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akshita27/urlShortener/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/akshita27/urlShortener/statuses/f778c4062e841cb2e4ca8b5a3dc55ceae5bca416"}}}}
{"actor":{"display_login":"dash1291"}}