{"action":"created","comment":{"url":"https://api.github.com/repos/go-gitea/gitea/pulls/comments/87012740","pull_request_review_id":7641738,"id":87012740,"diff_hunk":"@@ -119,6 +121,10 @@ func (u *User) BeforeUpdate() {\n \tu.UpdatedUnix = time.Now().Unix()\n }\n \n+func (u *User) AfterLogin() {","path":"models/user.go","position":13,"original_position":13,"commit_id":"edcd3038613af3bf58e7bda6c88ab35b3f8ba0a0","original_commit_id":"edcd3038613af3bf58e7bda6c88ab35b3f8ba0a0","user":{"login":"DblK","id":832617,"avatar_url":"https://avatars.githubusercontent.com/u/832617?v=3","gravatar_id":"","url":"https://api.github.com/users/DblK","html_url":"https://github.com/DblK","followers_url":"https://api.github.com/users/DblK/followers","following_url":"https://api.github.com/users/DblK/following{/other_user}","gists_url":"https://api.github.com/users/DblK/gists{/gist_id}","starred_url":"https://api.github.com/users/DblK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DblK/subscriptions","organizations_url":"https://api.github.com/users/DblK/orgs","repos_url":"https://api.github.com/users/DblK/repos","events_url":"https://api.github.com/users/DblK/events{/privacy}","received_events_url":"https://api.github.com/users/DblK/received_events","type":"User","site_admin":false},"body":"Could you provide some comments for the linting of your function?","created_at":"2016-11-08T15:32:41Z","updated_at":"2016-11-08T15:35:41Z","html_url":"https://github.com/go-gitea/gitea/pull/121#discussion_r87012740","pull_request_url":"https://api.github.com/repos/go-gitea/gitea/pulls/121","_links":{"self":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/comments/87012740"},"html":{"href":"https://github.com/go-gitea/gitea/pull/121#discussion_r87012740"},"pull_request":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/121"}}},"pull_request":{"url":"https://api.github.com/repos/go-gitea/gitea/pulls/121","id":92782022,"html_url":"https://github.com/go-gitea/gitea/pull/121","diff_url":"https://github.com/go-gitea/gitea/pull/121.diff","patch_url":"https://github.com/go-gitea/gitea/pull/121.patch","issue_url":"https://api.github.com/repos/go-gitea/gitea/issues/121","number":121,"state":"open","locked":false,"title":"Last Login for admin manage your users","user":{"login":"joubertredrat","id":1520407,"avatar_url":"https://avatars.githubusercontent.com/u/1520407?v=3","gravatar_id":"","url":"https://api.github.com/users/joubertredrat","html_url":"https://github.com/joubertredrat","followers_url":"https://api.github.com/users/joubertredrat/followers","following_url":"https://api.github.com/users/joubertredrat/following{/other_user}","gists_url":"https://api.github.com/users/joubertredrat/gists{/gist_id}","starred_url":"https://api.github.com/users/joubertredrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joubertredrat/subscriptions","organizations_url":"https://api.github.com/users/joubertredrat/orgs","repos_url":"https://api.github.com/users/joubertredrat/repos","events_url":"https://api.github.com/users/joubertredrat/events{/privacy}","received_events_url":"https://api.github.com/users/joubertredrat/received_events","type":"User","site_admin":false},"body":"This PR fixes https://github.com/go-gitea/gitea/issues/57\r\n\r\nPS: Thanks @lunny for help on final with i18n.\r\n\r\n![screenshot-localhost 3000 2016-11-08 12-02-26](https://cloud.githubusercontent.com/assets/1520407/20101936/43c628a8-a5ab-11e6-846a-9e1afe544a65.png)\r\n","created_at":"2016-11-08T13:57:00Z","updated_at":"2016-11-08T15:35:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"80b73fb74163def9a3200aac54ff83e4237864e9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/go-gitea/gitea/pulls/121/commits","review_comments_url":"https://api.github.com/repos/go-gitea/gitea/pulls/121/comments","review_comment_url":"https://api.github.com/repos/go-gitea/gitea/pulls/comments{/number}","comments_url":"https://api.github.com/repos/go-gitea/gitea/issues/121/comments","statuses_url":"https://api.github.com/repos/go-gitea/gitea/statuses/edcd3038613af3bf58e7bda6c88ab35b3f8ba0a0","head":{"label":"joubertredrat:feature-last-login","ref":"feature-last-login","sha":"edcd3038613af3bf58e7bda6c88ab35b3f8ba0a0","user":{"login":"joubertredrat","id":1520407,"avatar_url":"https://avatars.githubusercontent.com/u/1520407?v=3","gravatar_id":"","url":"https://api.github.com/users/joubertredrat","html_url":"https://github.com/joubertredrat","followers_url":"https://api.github.com/users/joubertredrat/followers","following_url":"https://api.github.com/users/joubertredrat/following{/other_user}","gists_url":"https://api.github.com/users/joubertredrat/gists{/gist_id}","starred_url":"https://api.github.com/users/joubertredrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joubertredrat/subscriptions","organizations_url":"https://api.github.com/users/joubertredrat/orgs","repos_url":"https://api.github.com/users/joubertredrat/repos","events_url":"https://api.github.com/users/joubertredrat/events{/privacy}","received_events_url":"https://api.github.com/users/joubertredrat/received_events","type":"User","site_admin":false},"repo":{"id":72766207,"name":"gitea","full_name":"joubertredrat/gitea","owner":{"login":"joubertredrat","id":1520407,"avatar_url":"https://avatars.githubusercontent.com/u/1520407?v=3","gravatar_id":"","url":"https://api.github.com/users/joubertredrat","html_url":"https://github.com/joubertredrat","followers_url":"https://api.github.com/users/joubertredrat/followers","following_url":"https://api.github.com/users/joubertredrat/following{/other_user}","gists_url":"https://api.github.com/users/joubertredrat/gists{/gist_id}","starred_url":"https://api.github.com/users/joubertredrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joubertredrat/subscriptions","organizations_url":"https://api.github.com/users/joubertredrat/orgs","repos_url":"https://api.github.com/users/joubertredrat/repos","events_url":"https://api.github.com/users/joubertredrat/events{/privacy}","received_events_url":"https://api.github.com/users/joubertredrat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joubertredrat/gitea","description":"Git with a cup of tea","fork":true,"url":"https://api.github.com/repos/joubertredrat/gitea","forks_url":"https://api.github.com/repos/joubertredrat/gitea/forks","keys_url":"https://api.github.com/repos/joubertredrat/gitea/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joubertredrat/gitea/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joubertredrat/gitea/teams","hooks_url":"https://api.github.com/repos/joubertredrat/gitea/hooks","issue_events_url":"https://api.github.com/repos/joubertredrat/gitea/issues/events{/number}","events_url":"https://api.github.com/repos/joubertredrat/gitea/events","assignees_url":"https://api.github.com/repos/joubertredrat/gitea/assignees{/user}","branches_url":"https://api.github.com/repos/joubertredrat/gitea/branches{/branch}","tags_url":"https://api.github.com/repos/joubertredrat/gitea/tags","blobs_url":"https://api.github.com/repos/joubertredrat/gitea/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joubertredrat/gitea/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joubertredrat/gitea/git/refs{/sha}","trees_url":"https://api.github.com/repos/joubertredrat/gitea/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joubertredrat/gitea/statuses/{sha}","languages_url":"https://api.github.com/repos/joubertredrat/gitea/languages","stargazers_url":"https://api.github.com/repos/joubertredrat/gitea/stargazers","contributors_url":"https://api.github.com/repos/joubertredrat/gitea/contributors","subscribers_url":"https://api.github.com/repos/joubertredrat/gitea/subscribers","subscription_url":"https://api.github.com/repos/joubertredrat/gitea/subscription","commits_url":"https://api.github.com/repos/joubertredrat/gitea/commits{/sha}","git_commits_url":"https://api.github.com/repos/joubertredrat/gitea/git/commits{/sha}","comments_url":"https://api.github.com/repos/joubertredrat/gitea/comments{/number}","issue_comment_url":"https://api.github.com/repos/joubertredrat/gitea/issues/comments{/number}","contents_url":"https://api.github.com/repos/joubertredrat/gitea/contents/{+path}","compare_url":"https://api.github.com/repos/joubertredrat/gitea/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joubertredrat/gitea/merges","archive_url":"https://api.github.com/repos/joubertredrat/gitea/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joubertredrat/gitea/downloads","issues_url":"https://api.github.com/repos/joubertredrat/gitea/issues{/number}","pulls_url":"https://api.github.com/repos/joubertredrat/gitea/pulls{/number}","milestones_url":"https://api.github.com/repos/joubertredrat/gitea/milestones{/number}","notifications_url":"https://api.github.com/repos/joubertredrat/gitea/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joubertredrat/gitea/labels{/name}","releases_url":"https://api.github.com/repos/joubertredrat/gitea/releases{/id}","deployments_url":"https://api.github.com/repos/joubertredrat/gitea/deployments","created_at":"2016-11-03T16:45:17Z","updated_at":"2016-11-03T16:45:20Z","pushed_at":"2016-11-08T13:55:42Z","git_url":"git://github.com/joubertredrat/gitea.git","ssh_url":"git@github.com:joubertredrat/gitea.git","clone_url":"https://github.com/joubertredrat/gitea.git","svn_url":"https://github.com/joubertredrat/gitea","homepage":"http://gitea.io","size":84890,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"go-gitea:master","ref":"master","sha":"f6d53ecbc1a1f1475d2ed6753176db43278dfd7f","user":{"login":"go-gitea","id":12724356,"avatar_url":"https://avatars.githubusercontent.com/u/12724356?v=3","gravatar_id":"","url":"https://api.github.com/users/go-gitea","html_url":"https://github.com/go-gitea","followers_url":"https://api.github.com/users/go-gitea/followers","following_url":"https://api.github.com/users/go-gitea/following{/other_user}","gists_url":"https://api.github.com/users/go-gitea/gists{/gist_id}","starred_url":"https://api.github.com/users/go-gitea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-gitea/subscriptions","organizations_url":"https://api.github.com/users/go-gitea/orgs","repos_url":"https://api.github.com/users/go-gitea/repos","events_url":"https://api.github.com/users/go-gitea/events{/privacy}","received_events_url":"https://api.github.com/users/go-gitea/received_events","type":"Organization","site_admin":false},"repo":{"id":72495579,"name":"gitea","full_name":"go-gitea/gitea","owner":{"login":"go-gitea","id":12724356,"avatar_url":"https://avatars.githubusercontent.com/u/12724356?v=3","gravatar_id":"","url":"https://api.github.com/users/go-gitea","html_url":"https://github.com/go-gitea","followers_url":"https://api.github.com/users/go-gitea/followers","following_url":"https://api.github.com/users/go-gitea/following{/other_user}","gists_url":"https://api.github.com/users/go-gitea/gists{/gist_id}","starred_url":"https://api.github.com/users/go-gitea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-gitea/subscriptions","organizations_url":"https://api.github.com/users/go-gitea/orgs","repos_url":"https://api.github.com/users/go-gitea/repos","events_url":"https://api.github.com/users/go-gitea/events{/privacy}","received_events_url":"https://api.github.com/users/go-gitea/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/go-gitea/gitea","description":"Gitea: Git with a cup of tea","fork":true,"url":"https://api.github.com/repos/go-gitea/gitea","forks_url":"https://api.github.com/repos/go-gitea/gitea/forks","keys_url":"https://api.github.com/repos/go-gitea/gitea/keys{/key_id}","collaborators_url":"https://api.github.com/repos/go-gitea/gitea/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/go-gitea/gitea/teams","hooks_url":"https://api.github.com/repos/go-gitea/gitea/hooks","issue_events_url":"https://api.github.com/repos/go-gitea/gitea/issues/events{/number}","events_url":"https://api.github.com/repos/go-gitea/gitea/events","assignees_url":"https://api.github.com/repos/go-gitea/gitea/assignees{/user}","branches_url":"https://api.github.com/repos/go-gitea/gitea/branches{/branch}","tags_url":"https://api.github.com/repos/go-gitea/gitea/tags","blobs_url":"https://api.github.com/repos/go-gitea/gitea/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/go-gitea/gitea/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/go-gitea/gitea/git/refs{/sha}","trees_url":"https://api.github.com/repos/go-gitea/gitea/git/trees{/sha}","statuses_url":"https://api.github.com/repos/go-gitea/gitea/statuses/{sha}","languages_url":"https://api.github.com/repos/go-gitea/gitea/languages","stargazers_url":"https://api.github.com/repos/go-gitea/gitea/stargazers","contributors_url":"https://api.github.com/repos/go-gitea/gitea/contributors","subscribers_url":"https://api.github.com/repos/go-gitea/gitea/subscribers","subscription_url":"https://api.github.com/repos/go-gitea/gitea/subscription","commits_url":"https://api.github.com/repos/go-gitea/gitea/commits{/sha}","git_commits_url":"https://api.github.com/repos/go-gitea/gitea/git/commits{/sha}","comments_url":"https://api.github.com/repos/go-gitea/gitea/comments{/number}","issue_comment_url":"https://api.github.com/repos/go-gitea/gitea/issues/comments{/number}","contents_url":"https://api.github.com/repos/go-gitea/gitea/contents/{+path}","compare_url":"https://api.github.com/repos/go-gitea/gitea/compare/{base}...{head}","merges_url":"https://api.github.com/repos/go-gitea/gitea/merges","archive_url":"https://api.github.com/repos/go-gitea/gitea/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/go-gitea/gitea/downloads","issues_url":"https://api.github.com/repos/go-gitea/gitea/issues{/number}","pulls_url":"https://api.github.com/repos/go-gitea/gitea/pulls{/number}","milestones_url":"https://api.github.com/repos/go-gitea/gitea/milestones{/number}","notifications_url":"https://api.github.com/repos/go-gitea/gitea/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/go-gitea/gitea/labels{/name}","releases_url":"https://api.github.com/repos/go-gitea/gitea/releases{/id}","deployments_url":"https://api.github.com/repos/go-gitea/gitea/deployments","created_at":"2016-11-01T02:13:26Z","updated_at":"2016-11-08T14:00:27Z","pushed_at":"2016-11-08T15:27:25Z","git_url":"git://github.com/go-gitea/gitea.git","ssh_url":"git@github.com:go-gitea/gitea.git","clone_url":"https://github.com/go-gitea/gitea.git","svn_url":"https://github.com/go-gitea/gitea","homepage":"http://gitea.io","size":94935,"stargazers_count":44,"watchers_count":44,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":53,"forks":10,"open_issues":53,"watchers":44,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/121"},"html":{"href":"https://github.com/go-gitea/gitea/pull/121"},"issue":{"href":"https://api.github.com/repos/go-gitea/gitea/issues/121"},"comments":{"href":"https://api.github.com/repos/go-gitea/gitea/issues/121/comments"},"review_comments":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/121/comments"},"review_comment":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/121/commits"},"statuses":{"href":"https://api.github.com/repos/go-gitea/gitea/statuses/edcd3038613af3bf58e7bda6c88ab35b3f8ba0a0"}}}}
{"actor":{"display_login":"DblK"}}