{"action":"closed","number":50,"pull_request":{"url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/pulls/50","id":154636270,"html_url":"https://github.com/vishwanatharondekar/gitlab-cli/pull/50","diff_url":"https://github.com/vishwanatharondekar/gitlab-cli/pull/50.diff","patch_url":"https://github.com/vishwanatharondekar/gitlab-cli/pull/50.patch","issue_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/issues/50","number":50,"state":"closed","locked":false,"title":"Git config and onboarding","user":{"login":"stevelacey","id":289531,"avatar_url":"https://avatars0.githubusercontent.com/u/289531?v=4","gravatar_id":"","url":"https://api.github.com/users/stevelacey","html_url":"https://github.com/stevelacey","followers_url":"https://api.github.com/users/stevelacey/followers","following_url":"https://api.github.com/users/stevelacey/following{/other_user}","gists_url":"https://api.github.com/users/stevelacey/gists{/gist_id}","starred_url":"https://api.github.com/users/stevelacey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevelacey/subscriptions","organizations_url":"https://api.github.com/users/stevelacey/orgs","repos_url":"https://api.github.com/users/stevelacey/repos","events_url":"https://api.github.com/users/stevelacey/events{/privacy}","received_events_url":"https://api.github.com/users/stevelacey/received_events","type":"User","site_admin":false},"body":"- Supports pulling `gitlab.url` and `gitlab.token` out of git config\r\n- Onboards the user asking for these values and setting them in git config\r\n- Tries env vars if no config ahead before trying onboarding\r\n- Tries guessing the url from `origin` remote if no env vars\r\n\r\nA future work could be to add a `config` command or similar to change these values after they're first set, but for now I haven't done that - should probably put some help text somewhere so people know how to change them if they muck them up\r\n\r\nAlso note there's no validation of either value presently","created_at":"2017-11-25T12:28:17Z","updated_at":"2017-11-25T15:36:18Z","closed_at":"2017-11-25T15:36:18Z","merged_at":"2017-11-25T15:36:18Z","merge_commit_sha":"d45ca67f48a4f76ffaeef3d00e8b0a22644e1de2","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/pulls/50/commits","review_comments_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/pulls/50/comments","review_comment_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/issues/50/comments","statuses_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/statuses/85c0b5f5f8b56aa7866993d1e18120053e0db905","head":{"label":"stevelacey:git-config","ref":"git-config","sha":"85c0b5f5f8b56aa7866993d1e18120053e0db905","user":{"login":"stevelacey","id":289531,"avatar_url":"https://avatars0.githubusercontent.com/u/289531?v=4","gravatar_id":"","url":"https://api.github.com/users/stevelacey","html_url":"https://github.com/stevelacey","followers_url":"https://api.github.com/users/stevelacey/followers","following_url":"https://api.github.com/users/stevelacey/following{/other_user}","gists_url":"https://api.github.com/users/stevelacey/gists{/gist_id}","starred_url":"https://api.github.com/users/stevelacey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevelacey/subscriptions","organizations_url":"https://api.github.com/users/stevelacey/orgs","repos_url":"https://api.github.com/users/stevelacey/repos","events_url":"https://api.github.com/users/stevelacey/events{/privacy}","received_events_url":"https://api.github.com/users/stevelacey/received_events","type":"User","site_admin":false},"repo":{"id":111913585,"name":"gitlab-cli","full_name":"stevelacey/gitlab-cli","owner":{"login":"stevelacey","id":289531,"avatar_url":"https://avatars0.githubusercontent.com/u/289531?v=4","gravatar_id":"","url":"https://api.github.com/users/stevelacey","html_url":"https://github.com/stevelacey","followers_url":"https://api.github.com/users/stevelacey/followers","following_url":"https://api.github.com/users/stevelacey/following{/other_user}","gists_url":"https://api.github.com/users/stevelacey/gists{/gist_id}","starred_url":"https://api.github.com/users/stevelacey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevelacey/subscriptions","organizations_url":"https://api.github.com/users/stevelacey/orgs","repos_url":"https://api.github.com/users/stevelacey/repos","events_url":"https://api.github.com/users/stevelacey/events{/privacy}","received_events_url":"https://api.github.com/users/stevelacey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stevelacey/gitlab-cli","description":"Create a merge request from command line in gitlab","fork":true,"url":"https://api.github.com/repos/stevelacey/gitlab-cli","forks_url":"https://api.github.com/repos/stevelacey/gitlab-cli/forks","keys_url":"https://api.github.com/repos/stevelacey/gitlab-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stevelacey/gitlab-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stevelacey/gitlab-cli/teams","hooks_url":"https://api.github.com/repos/stevelacey/gitlab-cli/hooks","issue_events_url":"https://api.github.com/repos/stevelacey/gitlab-cli/issues/events{/number}","events_url":"https://api.github.com/repos/stevelacey/gitlab-cli/events","assignees_url":"https://api.github.com/repos/stevelacey/gitlab-cli/assignees{/user}","branches_url":"https://api.github.com/repos/stevelacey/gitlab-cli/branches{/branch}","tags_url":"https://api.github.com/repos/stevelacey/gitlab-cli/tags","blobs_url":"https://api.github.com/repos/stevelacey/gitlab-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stevelacey/gitlab-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stevelacey/gitlab-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/stevelacey/gitlab-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stevelacey/gitlab-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/stevelacey/gitlab-cli/languages","stargazers_url":"https://api.github.com/repos/stevelacey/gitlab-cli/stargazers","contributors_url":"https://api.github.com/repos/stevelacey/gitlab-cli/contributors","subscribers_url":"https://api.github.com/repos/stevelacey/gitlab-cli/subscribers","subscription_url":"https://api.github.com/repos/stevelacey/gitlab-cli/subscription","commits_url":"https://api.github.com/repos/stevelacey/gitlab-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/stevelacey/gitlab-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/stevelacey/gitlab-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/stevelacey/gitlab-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/stevelacey/gitlab-cli/contents/{+path}","compare_url":"https://api.github.com/repos/stevelacey/gitlab-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stevelacey/gitlab-cli/merges","archive_url":"https://api.github.com/repos/stevelacey/gitlab-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stevelacey/gitlab-cli/downloads","issues_url":"https://api.github.com/repos/stevelacey/gitlab-cli/issues{/number}","pulls_url":"https://api.github.com/repos/stevelacey/gitlab-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/stevelacey/gitlab-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/stevelacey/gitlab-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stevelacey/gitlab-cli/labels{/name}","releases_url":"https://api.github.com/repos/stevelacey/gitlab-cli/releases{/id}","deployments_url":"https://api.github.com/repos/stevelacey/gitlab-cli/deployments","created_at":"2017-11-24T12:00:13Z","updated_at":"2017-11-24T12:00:16Z","pushed_at":"2017-11-25T15:23:25Z","git_url":"git://github.com/stevelacey/gitlab-cli.git","ssh_url":"git@github.com:stevelacey/gitlab-cli.git","clone_url":"https://github.com/stevelacey/gitlab-cli.git","svn_url":"https://github.com/stevelacey/gitlab-cli","homepage":"","size":75,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"vishwanatharondekar:master","ref":"master","sha":"b7ee13538d7c373241031d0709724f0fab17313d","user":{"login":"vishwanatharondekar","id":1109932,"avatar_url":"https://avatars3.githubusercontent.com/u/1109932?v=4","gravatar_id":"","url":"https://api.github.com/users/vishwanatharondekar","html_url":"https://github.com/vishwanatharondekar","followers_url":"https://api.github.com/users/vishwanatharondekar/followers","following_url":"https://api.github.com/users/vishwanatharondekar/following{/other_user}","gists_url":"https://api.github.com/users/vishwanatharondekar/gists{/gist_id}","starred_url":"https://api.github.com/users/vishwanatharondekar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishwanatharondekar/subscriptions","organizations_url":"https://api.github.com/users/vishwanatharondekar/orgs","repos_url":"https://api.github.com/users/vishwanatharondekar/repos","events_url":"https://api.github.com/users/vishwanatharondekar/events{/privacy}","received_events_url":"https://api.github.com/users/vishwanatharondekar/received_events","type":"User","site_admin":false},"repo":{"id":66712236,"name":"gitlab-cli","full_name":"vishwanatharondekar/gitlab-cli","owner":{"login":"vishwanatharondekar","id":1109932,"avatar_url":"https://avatars3.githubusercontent.com/u/1109932?v=4","gravatar_id":"","url":"https://api.github.com/users/vishwanatharondekar","html_url":"https://github.com/vishwanatharondekar","followers_url":"https://api.github.com/users/vishwanatharondekar/followers","following_url":"https://api.github.com/users/vishwanatharondekar/following{/other_user}","gists_url":"https://api.github.com/users/vishwanatharondekar/gists{/gist_id}","starred_url":"https://api.github.com/users/vishwanatharondekar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishwanatharondekar/subscriptions","organizations_url":"https://api.github.com/users/vishwanatharondekar/orgs","repos_url":"https://api.github.com/users/vishwanatharondekar/repos","events_url":"https://api.github.com/users/vishwanatharondekar/events{/privacy}","received_events_url":"https://api.github.com/users/vishwanatharondekar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vishwanatharondekar/gitlab-cli","description":"Create a merge request from command line in gitlab","fork":false,"url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli","forks_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/forks","keys_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/teams","hooks_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/hooks","issue_events_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/issues/events{/number}","events_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/events","assignees_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/assignees{/user}","branches_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/branches{/branch}","tags_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/tags","blobs_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/languages","stargazers_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/stargazers","contributors_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/contributors","subscribers_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/subscribers","subscription_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/subscription","commits_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/contents/{+path}","compare_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/merges","archive_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/downloads","issues_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/issues{/number}","pulls_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/labels{/name}","releases_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/releases{/id}","deployments_url":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/deployments","created_at":"2016-08-27T11:56:33Z","updated_at":"2017-11-18T03:50:19Z","pushed_at":"2017-11-25T15:36:18Z","git_url":"git://github.com/vishwanatharondekar/gitlab-cli.git","ssh_url":"git@github.com:vishwanatharondekar/gitlab-cli.git","clone_url":"https://github.com/vishwanatharondekar/gitlab-cli.git","svn_url":"https://github.com/vishwanatharondekar/gitlab-cli","homepage":"","size":72,"stargazers_count":52,"watchers_count":52,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":6,"forks":14,"open_issues":6,"watchers":52,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/pulls/50"},"html":{"href":"https://github.com/vishwanatharondekar/gitlab-cli/pull/50"},"issue":{"href":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/issues/50"},"comments":{"href":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/vishwanatharondekar/gitlab-cli/statuses/85c0b5f5f8b56aa7866993d1e18120053e0db905"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"vishwanatharondekar","id":1109932,"avatar_url":"https://avatars3.githubusercontent.com/u/1109932?v=4","gravatar_id":"","url":"https://api.github.com/users/vishwanatharondekar","html_url":"https://github.com/vishwanatharondekar","followers_url":"https://api.github.com/users/vishwanatharondekar/followers","following_url":"https://api.github.com/users/vishwanatharondekar/following{/other_user}","gists_url":"https://api.github.com/users/vishwanatharondekar/gists{/gist_id}","starred_url":"https://api.github.com/users/vishwanatharondekar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishwanatharondekar/subscriptions","organizations_url":"https://api.github.com/users/vishwanatharondekar/orgs","repos_url":"https://api.github.com/users/vishwanatharondekar/repos","events_url":"https://api.github.com/users/vishwanatharondekar/events{/privacy}","received_events_url":"https://api.github.com/users/vishwanatharondekar/received_events","type":"User","site_admin":false},"comments":6,"review_comments":4,"maintainer_can_modify":false,"commits":2,"additions":58,"deletions":25,"changed_files":2}}
{"actor":{"display_login":"vishwanatharondekar"}}