{"action":"created","comment":{"url":"https://api.github.com/repos/gogs/gogs/pulls/comments/193256921","pull_request_review_id":126194214,"id":193256921,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzI1NjkyMQ==","diff_hunk":"@@ -185,6 +185,10 @@ func renderFile(c *context.Context, entry *git.TreeEntry, treeLink, rawLink stri\n \n \t\t\tvar output bytes.Buffer\n \t\t\tlines := strings.Split(fileContent, \"\\n\")\n+\t\t\t//Remove blank line at the end of file","path":"routes/repo/view.go","position":4,"original_position":4,"commit_id":"f9eb429dc83f8605d6bf4497f2486596895e21bd","original_commit_id":"f9eb429dc83f8605d6bf4497f2486596895e21bd","user":{"login":"Unknwon","id":2946214,"node_id":"MDQ6VXNlcjI5NDYyMTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2946214?v=4","gravatar_id":"","url":"https://api.github.com/users/Unknwon","html_url":"https://github.com/Unknwon","followers_url":"https://api.github.com/users/Unknwon/followers","following_url":"https://api.github.com/users/Unknwon/following{/other_user}","gists_url":"https://api.github.com/users/Unknwon/gists{/gist_id}","starred_url":"https://api.github.com/users/Unknwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unknwon/subscriptions","organizations_url":"https://api.github.com/users/Unknwon/orgs","repos_url":"https://api.github.com/users/Unknwon/repos","events_url":"https://api.github.com/users/Unknwon/events{/privacy}","received_events_url":"https://api.github.com/users/Unknwon/received_events","type":"User","site_admin":false},"body":"A space after `//`","created_at":"2018-06-05T23:57:16Z","updated_at":"2018-06-05T23:58:05Z","html_url":"https://github.com/gogs/gogs/pull/5270#discussion_r193256921","pull_request_url":"https://api.github.com/repos/gogs/gogs/pulls/5270","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/gogs/gogs/pulls/comments/193256921"},"html":{"href":"https://github.com/gogs/gogs/pull/5270#discussion_r193256921"},"pull_request":{"href":"https://api.github.com/repos/gogs/gogs/pulls/5270"}}},"pull_request":{"url":"https://api.github.com/repos/gogs/gogs/pulls/5270","id":192836914,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyODM2OTE0","html_url":"https://github.com/gogs/gogs/pull/5270","diff_url":"https://github.com/gogs/gogs/pull/5270.diff","patch_url":"https://github.com/gogs/gogs/pull/5270.patch","issue_url":"https://api.github.com/repos/gogs/gogs/issues/5270","number":5270,"state":"open","locked":false,"title":"Added deletion of an empty line at the end of file (#5261)","user":{"login":"axifive","id":844963,"node_id":"MDQ6VXNlcjg0NDk2Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/844963?v=4","gravatar_id":"","url":"https://api.github.com/users/axifive","html_url":"https://github.com/axifive","followers_url":"https://api.github.com/users/axifive/followers","following_url":"https://api.github.com/users/axifive/following{/other_user}","gists_url":"https://api.github.com/users/axifive/gists{/gist_id}","starred_url":"https://api.github.com/users/axifive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axifive/subscriptions","organizations_url":"https://api.github.com/users/axifive/orgs","repos_url":"https://api.github.com/users/axifive/repos","events_url":"https://api.github.com/users/axifive/events{/privacy}","received_events_url":"https://api.github.com/users/axifive/received_events","type":"User","site_admin":false},"body":"fix #5261\r\nNow the same viewing behavior as the GitHub/GitLab\r\n\r\n![2018-06-06 3 08 22](https://user-images.githubusercontent.com/844963/40581209-51b09ba2-615b-11e8-8648-ec7a16cf5365.png)\r\n![2018-06-06 3 08 22](https://user-images.githubusercontent.com/844963/40581216-7063dca8-615b-11e8-87d2-d1dd3f6a1997.png)\r\n\r\n\r\n","created_at":"2018-06-05T21:08:48Z","updated_at":"2018-06-05T23:58:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"63a47c7c5cc9968709374051603ca68403f59820","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gogs/gogs/pulls/5270/commits","review_comments_url":"https://api.github.com/repos/gogs/gogs/pulls/5270/comments","review_comment_url":"https://api.github.com/repos/gogs/gogs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gogs/gogs/issues/5270/comments","statuses_url":"https://api.github.com/repos/gogs/gogs/statuses/f9eb429dc83f8605d6bf4497f2486596895e21bd","head":{"label":"axifive:remove-last-blank-line","ref":"remove-last-blank-line","sha":"f9eb429dc83f8605d6bf4497f2486596895e21bd","user":{"login":"axifive","id":844963,"node_id":"MDQ6VXNlcjg0NDk2Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/844963?v=4","gravatar_id":"","url":"https://api.github.com/users/axifive","html_url":"https://github.com/axifive","followers_url":"https://api.github.com/users/axifive/followers","following_url":"https://api.github.com/users/axifive/following{/other_user}","gists_url":"https://api.github.com/users/axifive/gists{/gist_id}","starred_url":"https://api.github.com/users/axifive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axifive/subscriptions","organizations_url":"https://api.github.com/users/axifive/orgs","repos_url":"https://api.github.com/users/axifive/repos","events_url":"https://api.github.com/users/axifive/events{/privacy}","received_events_url":"https://api.github.com/users/axifive/received_events","type":"User","site_admin":false},"repo":{"id":136231200,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYyMzEyMDA=","name":"gogs","full_name":"axifive/gogs","owner":{"login":"axifive","id":844963,"node_id":"MDQ6VXNlcjg0NDk2Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/844963?v=4","gravatar_id":"","url":"https://api.github.com/users/axifive","html_url":"https://github.com/axifive","followers_url":"https://api.github.com/users/axifive/followers","following_url":"https://api.github.com/users/axifive/following{/other_user}","gists_url":"https://api.github.com/users/axifive/gists{/gist_id}","starred_url":"https://api.github.com/users/axifive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axifive/subscriptions","organizations_url":"https://api.github.com/users/axifive/orgs","repos_url":"https://api.github.com/users/axifive/repos","events_url":"https://api.github.com/users/axifive/events{/privacy}","received_events_url":"https://api.github.com/users/axifive/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/axifive/gogs","description":"Gogs is a painless self-hosted Git service.","fork":true,"url":"https://api.github.com/repos/axifive/gogs","forks_url":"https://api.github.com/repos/axifive/gogs/forks","keys_url":"https://api.github.com/repos/axifive/gogs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/axifive/gogs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/axifive/gogs/teams","hooks_url":"https://api.github.com/repos/axifive/gogs/hooks","issue_events_url":"https://api.github.com/repos/axifive/gogs/issues/events{/number}","events_url":"https://api.github.com/repos/axifive/gogs/events","assignees_url":"https://api.github.com/repos/axifive/gogs/assignees{/user}","branches_url":"https://api.github.com/repos/axifive/gogs/branches{/branch}","tags_url":"https://api.github.com/repos/axifive/gogs/tags","blobs_url":"https://api.github.com/repos/axifive/gogs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/axifive/gogs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/axifive/gogs/git/refs{/sha}","trees_url":"https://api.github.com/repos/axifive/gogs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/axifive/gogs/statuses/{sha}","languages_url":"https://api.github.com/repos/axifive/gogs/languages","stargazers_url":"https://api.github.com/repos/axifive/gogs/stargazers","contributors_url":"https://api.github.com/repos/axifive/gogs/contributors","subscribers_url":"https://api.github.com/repos/axifive/gogs/subscribers","subscription_url":"https://api.github.com/repos/axifive/gogs/subscription","commits_url":"https://api.github.com/repos/axifive/gogs/commits{/sha}","git_commits_url":"https://api.github.com/repos/axifive/gogs/git/commits{/sha}","comments_url":"https://api.github.com/repos/axifive/gogs/comments{/number}","issue_comment_url":"https://api.github.com/repos/axifive/gogs/issues/comments{/number}","contents_url":"https://api.github.com/repos/axifive/gogs/contents/{+path}","compare_url":"https://api.github.com/repos/axifive/gogs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/axifive/gogs/merges","archive_url":"https://api.github.com/repos/axifive/gogs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/axifive/gogs/downloads","issues_url":"https://api.github.com/repos/axifive/gogs/issues{/number}","pulls_url":"https://api.github.com/repos/axifive/gogs/pulls{/number}","milestones_url":"https://api.github.com/repos/axifive/gogs/milestones{/number}","notifications_url":"https://api.github.com/repos/axifive/gogs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/axifive/gogs/labels{/name}","releases_url":"https://api.github.com/repos/axifive/gogs/releases{/id}","deployments_url":"https://api.github.com/repos/axifive/gogs/deployments","created_at":"2018-06-05T20:28:47Z","updated_at":"2018-06-05T20:28:51Z","pushed_at":"2018-06-05T20:59:52Z","git_url":"git://github.com/axifive/gogs.git","ssh_url":"git@github.com:axifive/gogs.git","clone_url":"https://github.com/axifive/gogs.git","svn_url":"https://github.com/axifive/gogs","homepage":"https://gogs.io","size":145014,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gogs:master","ref":"master","sha":"91441c3fb29d8ead645d8fffa4658d749d5b3fc3","user":{"login":"gogs","id":6656686,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY2NTY2ODY=","avatar_url":"https://avatars0.githubusercontent.com/u/6656686?v=4","gravatar_id":"","url":"https://api.github.com/users/gogs","html_url":"https://github.com/gogs","followers_url":"https://api.github.com/users/gogs/followers","following_url":"https://api.github.com/users/gogs/following{/other_user}","gists_url":"https://api.github.com/users/gogs/gists{/gist_id}","starred_url":"https://api.github.com/users/gogs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogs/subscriptions","organizations_url":"https://api.github.com/users/gogs/orgs","repos_url":"https://api.github.com/users/gogs/repos","events_url":"https://api.github.com/users/gogs/events{/privacy}","received_events_url":"https://api.github.com/users/gogs/received_events","type":"Organization","site_admin":false},"repo":{"id":16752620,"node_id":"MDEwOlJlcG9zaXRvcnkxNjc1MjYyMA==","name":"gogs","full_name":"gogs/gogs","owner":{"login":"gogs","id":6656686,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY2NTY2ODY=","avatar_url":"https://avatars0.githubusercontent.com/u/6656686?v=4","gravatar_id":"","url":"https://api.github.com/users/gogs","html_url":"https://github.com/gogs","followers_url":"https://api.github.com/users/gogs/followers","following_url":"https://api.github.com/users/gogs/following{/other_user}","gists_url":"https://api.github.com/users/gogs/gists{/gist_id}","starred_url":"https://api.github.com/users/gogs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogs/subscriptions","organizations_url":"https://api.github.com/users/gogs/orgs","repos_url":"https://api.github.com/users/gogs/repos","events_url":"https://api.github.com/users/gogs/events{/privacy}","received_events_url":"https://api.github.com/users/gogs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gogs/gogs","description":"Gogs is a painless self-hosted Git service.","fork":false,"url":"https://api.github.com/repos/gogs/gogs","forks_url":"https://api.github.com/repos/gogs/gogs/forks","keys_url":"https://api.github.com/repos/gogs/gogs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gogs/gogs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gogs/gogs/teams","hooks_url":"https://api.github.com/repos/gogs/gogs/hooks","issue_events_url":"https://api.github.com/repos/gogs/gogs/issues/events{/number}","events_url":"https://api.github.com/repos/gogs/gogs/events","assignees_url":"https://api.github.com/repos/gogs/gogs/assignees{/user}","branches_url":"https://api.github.com/repos/gogs/gogs/branches{/branch}","tags_url":"https://api.github.com/repos/gogs/gogs/tags","blobs_url":"https://api.github.com/repos/gogs/gogs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gogs/gogs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gogs/gogs/git/refs{/sha}","trees_url":"https://api.github.com/repos/gogs/gogs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gogs/gogs/statuses/{sha}","languages_url":"https://api.github.com/repos/gogs/gogs/languages","stargazers_url":"https://api.github.com/repos/gogs/gogs/stargazers","contributors_url":"https://api.github.com/repos/gogs/gogs/contributors","subscribers_url":"https://api.github.com/repos/gogs/gogs/subscribers","subscription_url":"https://api.github.com/repos/gogs/gogs/subscription","commits_url":"https://api.github.com/repos/gogs/gogs/commits{/sha}","git_commits_url":"https://api.github.com/repos/gogs/gogs/git/commits{/sha}","comments_url":"https://api.github.com/repos/gogs/gogs/comments{/number}","issue_comment_url":"https://api.github.com/repos/gogs/gogs/issues/comments{/number}","contents_url":"https://api.github.com/repos/gogs/gogs/contents/{+path}","compare_url":"https://api.github.com/repos/gogs/gogs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gogs/gogs/merges","archive_url":"https://api.github.com/repos/gogs/gogs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gogs/gogs/downloads","issues_url":"https://api.github.com/repos/gogs/gogs/issues{/number}","pulls_url":"https://api.github.com/repos/gogs/gogs/pulls{/number}","milestones_url":"https://api.github.com/repos/gogs/gogs/milestones{/number}","notifications_url":"https://api.github.com/repos/gogs/gogs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gogs/gogs/labels{/name}","releases_url":"https://api.github.com/repos/gogs/gogs/releases{/id}","deployments_url":"https://api.github.com/repos/gogs/gogs/deployments","created_at":"2014-02-12T01:57:08Z","updated_at":"2018-06-05T23:46:28Z","pushed_at":"2018-06-05T21:08:49Z","git_url":"git://github.com/gogs/gogs.git","ssh_url":"git@github.com:gogs/gogs.git","clone_url":"https://github.com/gogs/gogs.git","svn_url":"https://github.com/gogs/gogs","homepage":"https://gogs.io","size":145052,"stargazers_count":25415,"watchers_count":25415,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2943,"mirror_url":null,"archived":false,"open_issues_count":632,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2943,"open_issues":632,"watchers":25415,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gogs/gogs/pulls/5270"},"html":{"href":"https://github.com/gogs/gogs/pull/5270"},"issue":{"href":"https://api.github.com/repos/gogs/gogs/issues/5270"},"comments":{"href":"https://api.github.com/repos/gogs/gogs/issues/5270/comments"},"review_comments":{"href":"https://api.github.com/repos/gogs/gogs/pulls/5270/comments"},"review_comment":{"href":"https://api.github.com/repos/gogs/gogs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gogs/gogs/pulls/5270/commits"},"statuses":{"href":"https://api.github.com/repos/gogs/gogs/statuses/f9eb429dc83f8605d6bf4497f2486596895e21bd"}},"author_association":"NONE"}}
{"actor":{"display_login":"Unknwon"}}