{"action":"closed","number":3391,"pull_request":{"url":"https://api.github.com/repos/gogits/gogs/pulls/3391","id":80350367,"html_url":"https://github.com/gogits/gogs/pull/3391","diff_url":"https://github.com/gogits/gogs/pull/3391.diff","patch_url":"https://github.com/gogits/gogs/pull/3391.patch","issue_url":"https://api.github.com/repos/gogits/gogs/issues/3391","number":3391,"state":"closed","locked":false,"title":"Add API endpoint for getting user by token","user":{"login":"ethantkoenig","id":8990880,"avatar_url":"https://avatars.githubusercontent.com/u/8990880?v=3","gravatar_id":"","url":"https://api.github.com/users/ethantkoenig","html_url":"https://github.com/ethantkoenig","followers_url":"https://api.github.com/users/ethantkoenig/followers","following_url":"https://api.github.com/users/ethantkoenig/following{/other_user}","gists_url":"https://api.github.com/users/ethantkoenig/gists{/gist_id}","starred_url":"https://api.github.com/users/ethantkoenig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethantkoenig/subscriptions","organizations_url":"https://api.github.com/users/ethantkoenig/orgs","repos_url":"https://api.github.com/users/ethantkoenig/repos","events_url":"https://api.github.com/users/ethantkoenig/events{/privacy}","received_events_url":"https://api.github.com/users/ethantkoenig/received_events","type":"User","site_admin":false},"body":"This pull request adds a new API endpoint for getting a user from an access token. The endpoint is `GET user/`, and is analogous to the Github endpoint `GET user/` (https://developer.github.com/v3/users/#get-the-authenticated-user).\r\n\r\nTo the best of my knowledge, @Unknwon contacted @richmahn yesterday (08/06/2016) expressing interest in this feature.","created_at":"2016-08-06T20:47:52Z","updated_at":"2016-08-11T22:29:51Z","closed_at":"2016-08-11T22:29:51Z","merged_at":null,"merge_commit_sha":"20b9d4a20156a7d1d353f911a79fc2326c261036","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gogits/gogs/pulls/3391/commits","review_comments_url":"https://api.github.com/repos/gogits/gogs/pulls/3391/comments","review_comment_url":"https://api.github.com/repos/gogits/gogs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/3391/comments","statuses_url":"https://api.github.com/repos/gogits/gogs/statuses/c395961578482c5b89d1ee0b5914e3187830c40b","head":{"label":"ethantkoenig:master","ref":"master","sha":"c395961578482c5b89d1ee0b5914e3187830c40b","user":{"login":"ethantkoenig","id":8990880,"avatar_url":"https://avatars.githubusercontent.com/u/8990880?v=3","gravatar_id":"","url":"https://api.github.com/users/ethantkoenig","html_url":"https://github.com/ethantkoenig","followers_url":"https://api.github.com/users/ethantkoenig/followers","following_url":"https://api.github.com/users/ethantkoenig/following{/other_user}","gists_url":"https://api.github.com/users/ethantkoenig/gists{/gist_id}","starred_url":"https://api.github.com/users/ethantkoenig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethantkoenig/subscriptions","organizations_url":"https://api.github.com/users/ethantkoenig/orgs","repos_url":"https://api.github.com/users/ethantkoenig/repos","events_url":"https://api.github.com/users/ethantkoenig/events{/privacy}","received_events_url":"https://api.github.com/users/ethantkoenig/received_events","type":"User","site_admin":false},"repo":{"id":65067421,"name":"gogs","full_name":"ethantkoenig/gogs","owner":{"login":"ethantkoenig","id":8990880,"avatar_url":"https://avatars.githubusercontent.com/u/8990880?v=3","gravatar_id":"","url":"https://api.github.com/users/ethantkoenig","html_url":"https://github.com/ethantkoenig","followers_url":"https://api.github.com/users/ethantkoenig/followers","following_url":"https://api.github.com/users/ethantkoenig/following{/other_user}","gists_url":"https://api.github.com/users/ethantkoenig/gists{/gist_id}","starred_url":"https://api.github.com/users/ethantkoenig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethantkoenig/subscriptions","organizations_url":"https://api.github.com/users/ethantkoenig/orgs","repos_url":"https://api.github.com/users/ethantkoenig/repos","events_url":"https://api.github.com/users/ethantkoenig/events{/privacy}","received_events_url":"https://api.github.com/users/ethantkoenig/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ethantkoenig/gogs","description":"Gogs (Go Git Service) is a painless self-hosted Git service.","fork":true,"url":"https://api.github.com/repos/ethantkoenig/gogs","forks_url":"https://api.github.com/repos/ethantkoenig/gogs/forks","keys_url":"https://api.github.com/repos/ethantkoenig/gogs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ethantkoenig/gogs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ethantkoenig/gogs/teams","hooks_url":"https://api.github.com/repos/ethantkoenig/gogs/hooks","issue_events_url":"https://api.github.com/repos/ethantkoenig/gogs/issues/events{/number}","events_url":"https://api.github.com/repos/ethantkoenig/gogs/events","assignees_url":"https://api.github.com/repos/ethantkoenig/gogs/assignees{/user}","branches_url":"https://api.github.com/repos/ethantkoenig/gogs/branches{/branch}","tags_url":"https://api.github.com/repos/ethantkoenig/gogs/tags","blobs_url":"https://api.github.com/repos/ethantkoenig/gogs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ethantkoenig/gogs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ethantkoenig/gogs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ethantkoenig/gogs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ethantkoenig/gogs/statuses/{sha}","languages_url":"https://api.github.com/repos/ethantkoenig/gogs/languages","stargazers_url":"https://api.github.com/repos/ethantkoenig/gogs/stargazers","contributors_url":"https://api.github.com/repos/ethantkoenig/gogs/contributors","subscribers_url":"https://api.github.com/repos/ethantkoenig/gogs/subscribers","subscription_url":"https://api.github.com/repos/ethantkoenig/gogs/subscription","commits_url":"https://api.github.com/repos/ethantkoenig/gogs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ethantkoenig/gogs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ethantkoenig/gogs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ethantkoenig/gogs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ethantkoenig/gogs/contents/{+path}","compare_url":"https://api.github.com/repos/ethantkoenig/gogs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ethantkoenig/gogs/merges","archive_url":"https://api.github.com/repos/ethantkoenig/gogs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ethantkoenig/gogs/downloads","issues_url":"https://api.github.com/repos/ethantkoenig/gogs/issues{/number}","pulls_url":"https://api.github.com/repos/ethantkoenig/gogs/pulls{/number}","milestones_url":"https://api.github.com/repos/ethantkoenig/gogs/milestones{/number}","notifications_url":"https://api.github.com/repos/ethantkoenig/gogs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ethantkoenig/gogs/labels{/name}","releases_url":"https://api.github.com/repos/ethantkoenig/gogs/releases{/id}","deployments_url":"https://api.github.com/repos/ethantkoenig/gogs/deployments","created_at":"2016-08-06T05:53:07Z","updated_at":"2016-08-06T05:53:10Z","pushed_at":"2016-08-06T23:35:46Z","git_url":"git://github.com/ethantkoenig/gogs.git","ssh_url":"git@github.com:ethantkoenig/gogs.git","clone_url":"https://github.com/ethantkoenig/gogs.git","svn_url":"https://github.com/ethantkoenig/gogs","homepage":"https://gogs.io","size":69421,"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":"gogits:develop","ref":"develop","sha":"96f92e6105463c37a11cd09ecf1fdb4d5c0cb905","user":{"login":"gogits","id":6656686,"avatar_url":"https://avatars.githubusercontent.com/u/6656686?v=3","gravatar_id":"","url":"https://api.github.com/users/gogits","html_url":"https://github.com/gogits","followers_url":"https://api.github.com/users/gogits/followers","following_url":"https://api.github.com/users/gogits/following{/other_user}","gists_url":"https://api.github.com/users/gogits/gists{/gist_id}","starred_url":"https://api.github.com/users/gogits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogits/subscriptions","organizations_url":"https://api.github.com/users/gogits/orgs","repos_url":"https://api.github.com/users/gogits/repos","events_url":"https://api.github.com/users/gogits/events{/privacy}","received_events_url":"https://api.github.com/users/gogits/received_events","type":"Organization","site_admin":false},"repo":{"id":16752620,"name":"gogs","full_name":"gogits/gogs","owner":{"login":"gogits","id":6656686,"avatar_url":"https://avatars.githubusercontent.com/u/6656686?v=3","gravatar_id":"","url":"https://api.github.com/users/gogits","html_url":"https://github.com/gogits","followers_url":"https://api.github.com/users/gogits/followers","following_url":"https://api.github.com/users/gogits/following{/other_user}","gists_url":"https://api.github.com/users/gogits/gists{/gist_id}","starred_url":"https://api.github.com/users/gogits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogits/subscriptions","organizations_url":"https://api.github.com/users/gogits/orgs","repos_url":"https://api.github.com/users/gogits/repos","events_url":"https://api.github.com/users/gogits/events{/privacy}","received_events_url":"https://api.github.com/users/gogits/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gogits/gogs","description":"Gogs (Go Git Service) is a painless self-hosted Git service.","fork":false,"url":"https://api.github.com/repos/gogits/gogs","forks_url":"https://api.github.com/repos/gogits/gogs/forks","keys_url":"https://api.github.com/repos/gogits/gogs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gogits/gogs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gogits/gogs/teams","hooks_url":"https://api.github.com/repos/gogits/gogs/hooks","issue_events_url":"https://api.github.com/repos/gogits/gogs/issues/events{/number}","events_url":"https://api.github.com/repos/gogits/gogs/events","assignees_url":"https://api.github.com/repos/gogits/gogs/assignees{/user}","branches_url":"https://api.github.com/repos/gogits/gogs/branches{/branch}","tags_url":"https://api.github.com/repos/gogits/gogs/tags","blobs_url":"https://api.github.com/repos/gogits/gogs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gogits/gogs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gogits/gogs/git/refs{/sha}","trees_url":"https://api.github.com/repos/gogits/gogs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gogits/gogs/statuses/{sha}","languages_url":"https://api.github.com/repos/gogits/gogs/languages","stargazers_url":"https://api.github.com/repos/gogits/gogs/stargazers","contributors_url":"https://api.github.com/repos/gogits/gogs/contributors","subscribers_url":"https://api.github.com/repos/gogits/gogs/subscribers","subscription_url":"https://api.github.com/repos/gogits/gogs/subscription","commits_url":"https://api.github.com/repos/gogits/gogs/commits{/sha}","git_commits_url":"https://api.github.com/repos/gogits/gogs/git/commits{/sha}","comments_url":"https://api.github.com/repos/gogits/gogs/comments{/number}","issue_comment_url":"https://api.github.com/repos/gogits/gogs/issues/comments{/number}","contents_url":"https://api.github.com/repos/gogits/gogs/contents/{+path}","compare_url":"https://api.github.com/repos/gogits/gogs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gogits/gogs/merges","archive_url":"https://api.github.com/repos/gogits/gogs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gogits/gogs/downloads","issues_url":"https://api.github.com/repos/gogits/gogs/issues{/number}","pulls_url":"https://api.github.com/repos/gogits/gogs/pulls{/number}","milestones_url":"https://api.github.com/repos/gogits/gogs/milestones{/number}","notifications_url":"https://api.github.com/repos/gogits/gogs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gogits/gogs/labels{/name}","releases_url":"https://api.github.com/repos/gogits/gogs/releases{/id}","deployments_url":"https://api.github.com/repos/gogits/gogs/deployments","created_at":"2014-02-12T01:57:08Z","updated_at":"2016-08-11T20:57:15Z","pushed_at":"2016-08-11T22:29:44Z","git_url":"git://github.com/gogits/gogs.git","ssh_url":"git@github.com:gogits/gogs.git","clone_url":"https://github.com/gogits/gogs.git","svn_url":"https://github.com/gogits/gogs","homepage":"https://gogs.io","size":86116,"stargazers_count":15112,"watchers_count":15112,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1602,"mirror_url":null,"open_issues_count":385,"forks":1602,"open_issues":385,"watchers":15112,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gogits/gogs/pulls/3391"},"html":{"href":"https://github.com/gogits/gogs/pull/3391"},"issue":{"href":"https://api.github.com/repos/gogits/gogs/issues/3391"},"comments":{"href":"https://api.github.com/repos/gogits/gogs/issues/3391/comments"},"review_comments":{"href":"https://api.github.com/repos/gogits/gogs/pulls/3391/comments"},"review_comment":{"href":"https://api.github.com/repos/gogits/gogs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gogits/gogs/pulls/3391/commits"},"statuses":{"href":"https://api.github.com/repos/gogits/gogs/statuses/c395961578482c5b89d1ee0b5914e3187830c40b"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":2,"review_comments":2,"commits":1,"additions":6,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"Unknwon"}}