{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/6104","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/6104/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/6104/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/6104/events","html_url":"https://github.com/nodejs/node/pull/6104","id":146700638,"number":6104,"title":"os: add getpw() method","user":{"login":"cjihrig","id":2512748,"avatar_url":"https://avatars.githubusercontent.com/u/2512748?v=3","gravatar_id":"","url":"https://api.github.com/users/cjihrig","html_url":"https://github.com/cjihrig","followers_url":"https://api.github.com/users/cjihrig/followers","following_url":"https://api.github.com/users/cjihrig/following{/other_user}","gists_url":"https://api.github.com/users/cjihrig/gists{/gist_id}","starred_url":"https://api.github.com/users/cjihrig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjihrig/subscriptions","organizations_url":"https://api.github.com/users/cjihrig/orgs","repos_url":"https://api.github.com/users/cjihrig/repos","events_url":"https://api.github.com/users/cjihrig/events{/privacy}","received_events_url":"https://api.github.com/users/cjihrig/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/discuss","name":"discuss","color":"02d7e1"},{"url":"https://api.github.com/repos/nodejs/node/labels/os","name":"os","color":"d4c5f9"},{"url":"https://api.github.com/repos/nodejs/node/labels/semver-minor","name":"semver-minor","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-07T18:01:07Z","updated_at":"2016-04-08T16:00:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nodejs/node/pulls/6104","html_url":"https://github.com/nodejs/node/pull/6104","diff_url":"https://github.com/nodejs/node/pull/6104.diff","patch_url":"https://github.com/nodejs/node/pull/6104.patch"},"body":"##### Checklist\r\n\r\n- [x] tests and code linting passes\r\n- [x] a test and/or benchmark is included\r\n- [x] documentation is changed or added\r\n- [x] the commit message follows commit guidelines\r\n\r\n\r\n##### Affected core subsystem(s)\r\n\r\nos\r\n\r\n##### Description of change\r\n\r\n`os.getpw()` calls libuv's `uv_os_get_passwd()` function. It returns an object containing the current effective user's `username`, `uid`, `gid`, `shell`, and `homedir`. On Windows, the `uid` and `gid` are `-1`, and the `shell` is `null`."},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/207493270","html_url":"https://github.com/nodejs/node/pull/6104#issuecomment-207493270","issue_url":"https://api.github.com/repos/nodejs/node/issues/6104","id":207493270,"user":{"login":"jasnell","id":439929,"avatar_url":"https://avatars.githubusercontent.com/u/439929?v=3","gravatar_id":"","url":"https://api.github.com/users/jasnell","html_url":"https://github.com/jasnell","followers_url":"https://api.github.com/users/jasnell/followers","following_url":"https://api.github.com/users/jasnell/following{/other_user}","gists_url":"https://api.github.com/users/jasnell/gists{/gist_id}","starred_url":"https://api.github.com/users/jasnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasnell/subscriptions","organizations_url":"https://api.github.com/users/jasnell/orgs","repos_url":"https://api.github.com/users/jasnell/repos","events_url":"https://api.github.com/users/jasnell/events{/privacy}","received_events_url":"https://api.github.com/users/jasnell/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T16:00:26Z","updated_at":"2016-04-08T16:00:26Z","body":"LGTM. Left a comment that could be deferred to a separate PR if necessary."}}