{"action":"closed","number":118,"pull_request":{"url":"https://api.github.com/repos/coreos/etcdctl/pulls/118","id":36041669,"html_url":"https://github.com/coreos/etcdctl/pull/118","diff_url":"https://github.com/coreos/etcdctl/pull/118.diff","patch_url":"https://github.com/coreos/etcdctl/pull/118.patch","issue_url":"https://api.github.com/repos/coreos/etcdctl/issues/118","number":118,"state":"closed","locked":false,"title":"support 'etcdctl mkdir -p'","user":{"login":"joshk0","id":5368926,"avatar_url":"https://avatars.githubusercontent.com/u/5368926?v=3","gravatar_id":"","url":"https://api.github.com/users/joshk0","html_url":"https://github.com/joshk0","followers_url":"https://api.github.com/users/joshk0/followers","following_url":"https://api.github.com/users/joshk0/following{/other_user}","gists_url":"https://api.github.com/users/joshk0/gists{/gist_id}","starred_url":"https://api.github.com/users/joshk0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshk0/subscriptions","organizations_url":"https://api.github.com/users/joshk0/orgs","repos_url":"https://api.github.com/users/joshk0/repos","events_url":"https://api.github.com/users/joshk0/events{/privacy}","received_events_url":"https://api.github.com/users/joshk0/received_events","type":"User","site_admin":false},"body":"The 'mkdir' subcommand is not idempotent, and it is awkward to do\r\n'etcdctl ls /foo || etcdctl mkdir /foo'.\r\n\r\nAdd a 'p' flag to the mkdir command so that, when this flag is passed,\r\nit exits with success without trying to create a dir that already\r\nexists.\r\n\r\nThis allows its easy use in fixture style shell scripts that create a\r\nwhole etcdctl structure and run everytime a build is performed.","created_at":"2015-05-22T15:26:26Z","updated_at":"2015-06-26T15:23:52Z","closed_at":"2015-06-26T15:23:52Z","merged_at":null,"merge_commit_sha":"342e60ac7e7d49c5623e311fcdf83d4e634e82f2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/coreos/etcdctl/pulls/118/commits","review_comments_url":"https://api.github.com/repos/coreos/etcdctl/pulls/118/comments","review_comment_url":"https://api.github.com/repos/coreos/etcdctl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coreos/etcdctl/issues/118/comments","statuses_url":"https://api.github.com/repos/coreos/etcdctl/statuses/90b68251d99c6a876a66e067e75b4683ca9d98b7","head":{"label":"joshk0:mkdir-p","ref":"mkdir-p","sha":"90b68251d99c6a876a66e067e75b4683ca9d98b7","user":{"login":"joshk0","id":5368926,"avatar_url":"https://avatars.githubusercontent.com/u/5368926?v=3","gravatar_id":"","url":"https://api.github.com/users/joshk0","html_url":"https://github.com/joshk0","followers_url":"https://api.github.com/users/joshk0/followers","following_url":"https://api.github.com/users/joshk0/following{/other_user}","gists_url":"https://api.github.com/users/joshk0/gists{/gist_id}","starred_url":"https://api.github.com/users/joshk0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshk0/subscriptions","organizations_url":"https://api.github.com/users/joshk0/orgs","repos_url":"https://api.github.com/users/joshk0/repos","events_url":"https://api.github.com/users/joshk0/events{/privacy}","received_events_url":"https://api.github.com/users/joshk0/received_events","type":"User","site_admin":false},"repo":{"id":36079462,"name":"etcdctl","full_name":"joshk0/etcdctl","owner":{"login":"joshk0","id":5368926,"avatar_url":"https://avatars.githubusercontent.com/u/5368926?v=3","gravatar_id":"","url":"https://api.github.com/users/joshk0","html_url":"https://github.com/joshk0","followers_url":"https://api.github.com/users/joshk0/followers","following_url":"https://api.github.com/users/joshk0/following{/other_user}","gists_url":"https://api.github.com/users/joshk0/gists{/gist_id}","starred_url":"https://api.github.com/users/joshk0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshk0/subscriptions","organizations_url":"https://api.github.com/users/joshk0/orgs","repos_url":"https://api.github.com/users/joshk0/repos","events_url":"https://api.github.com/users/joshk0/events{/privacy}","received_events_url":"https://api.github.com/users/joshk0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joshk0/etcdctl","description":"A simple command line client for etcd","fork":true,"url":"https://api.github.com/repos/joshk0/etcdctl","forks_url":"https://api.github.com/repos/joshk0/etcdctl/forks","keys_url":"https://api.github.com/repos/joshk0/etcdctl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joshk0/etcdctl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joshk0/etcdctl/teams","hooks_url":"https://api.github.com/repos/joshk0/etcdctl/hooks","issue_events_url":"https://api.github.com/repos/joshk0/etcdctl/issues/events{/number}","events_url":"https://api.github.com/repos/joshk0/etcdctl/events","assignees_url":"https://api.github.com/repos/joshk0/etcdctl/assignees{/user}","branches_url":"https://api.github.com/repos/joshk0/etcdctl/branches{/branch}","tags_url":"https://api.github.com/repos/joshk0/etcdctl/tags","blobs_url":"https://api.github.com/repos/joshk0/etcdctl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joshk0/etcdctl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joshk0/etcdctl/git/refs{/sha}","trees_url":"https://api.github.com/repos/joshk0/etcdctl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joshk0/etcdctl/statuses/{sha}","languages_url":"https://api.github.com/repos/joshk0/etcdctl/languages","stargazers_url":"https://api.github.com/repos/joshk0/etcdctl/stargazers","contributors_url":"https://api.github.com/repos/joshk0/etcdctl/contributors","subscribers_url":"https://api.github.com/repos/joshk0/etcdctl/subscribers","subscription_url":"https://api.github.com/repos/joshk0/etcdctl/subscription","commits_url":"https://api.github.com/repos/joshk0/etcdctl/commits{/sha}","git_commits_url":"https://api.github.com/repos/joshk0/etcdctl/git/commits{/sha}","comments_url":"https://api.github.com/repos/joshk0/etcdctl/comments{/number}","issue_comment_url":"https://api.github.com/repos/joshk0/etcdctl/issues/comments{/number}","contents_url":"https://api.github.com/repos/joshk0/etcdctl/contents/{+path}","compare_url":"https://api.github.com/repos/joshk0/etcdctl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joshk0/etcdctl/merges","archive_url":"https://api.github.com/repos/joshk0/etcdctl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joshk0/etcdctl/downloads","issues_url":"https://api.github.com/repos/joshk0/etcdctl/issues{/number}","pulls_url":"https://api.github.com/repos/joshk0/etcdctl/pulls{/number}","milestones_url":"https://api.github.com/repos/joshk0/etcdctl/milestones{/number}","notifications_url":"https://api.github.com/repos/joshk0/etcdctl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joshk0/etcdctl/labels{/name}","releases_url":"https://api.github.com/repos/joshk0/etcdctl/releases{/id}","created_at":"2015-05-22T15:23:49Z","updated_at":"2015-05-22T15:23:50Z","pushed_at":"2015-05-22T15:26:18Z","git_url":"git://github.com/joshk0/etcdctl.git","ssh_url":"git@github.com:joshk0/etcdctl.git","clone_url":"https://github.com/joshk0/etcdctl.git","svn_url":"https://github.com/joshk0/etcdctl","homepage":"","size":430,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"coreos:master","ref":"master","sha":"318286ec61017d2e6bfbe4ca88424c0fdeaa4fc8","user":{"login":"coreos","id":3730757,"avatar_url":"https://avatars.githubusercontent.com/u/3730757?v=3","gravatar_id":"","url":"https://api.github.com/users/coreos","html_url":"https://github.com/coreos","followers_url":"https://api.github.com/users/coreos/followers","following_url":"https://api.github.com/users/coreos/following{/other_user}","gists_url":"https://api.github.com/users/coreos/gists{/gist_id}","starred_url":"https://api.github.com/users/coreos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreos/subscriptions","organizations_url":"https://api.github.com/users/coreos/orgs","repos_url":"https://api.github.com/users/coreos/repos","events_url":"https://api.github.com/users/coreos/events{/privacy}","received_events_url":"https://api.github.com/users/coreos/received_events","type":"Organization","site_admin":false},"repo":{"id":11881707,"name":"etcdctl","full_name":"coreos/etcdctl","owner":{"login":"coreos","id":3730757,"avatar_url":"https://avatars.githubusercontent.com/u/3730757?v=3","gravatar_id":"","url":"https://api.github.com/users/coreos","html_url":"https://github.com/coreos","followers_url":"https://api.github.com/users/coreos/followers","following_url":"https://api.github.com/users/coreos/following{/other_user}","gists_url":"https://api.github.com/users/coreos/gists{/gist_id}","starred_url":"https://api.github.com/users/coreos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreos/subscriptions","organizations_url":"https://api.github.com/users/coreos/orgs","repos_url":"https://api.github.com/users/coreos/repos","events_url":"https://api.github.com/users/coreos/events{/privacy}","received_events_url":"https://api.github.com/users/coreos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coreos/etcdctl","description":"A simple command line client for etcd","fork":false,"url":"https://api.github.com/repos/coreos/etcdctl","forks_url":"https://api.github.com/repos/coreos/etcdctl/forks","keys_url":"https://api.github.com/repos/coreos/etcdctl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coreos/etcdctl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coreos/etcdctl/teams","hooks_url":"https://api.github.com/repos/coreos/etcdctl/hooks","issue_events_url":"https://api.github.com/repos/coreos/etcdctl/issues/events{/number}","events_url":"https://api.github.com/repos/coreos/etcdctl/events","assignees_url":"https://api.github.com/repos/coreos/etcdctl/assignees{/user}","branches_url":"https://api.github.com/repos/coreos/etcdctl/branches{/branch}","tags_url":"https://api.github.com/repos/coreos/etcdctl/tags","blobs_url":"https://api.github.com/repos/coreos/etcdctl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coreos/etcdctl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coreos/etcdctl/git/refs{/sha}","trees_url":"https://api.github.com/repos/coreos/etcdctl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coreos/etcdctl/statuses/{sha}","languages_url":"https://api.github.com/repos/coreos/etcdctl/languages","stargazers_url":"https://api.github.com/repos/coreos/etcdctl/stargazers","contributors_url":"https://api.github.com/repos/coreos/etcdctl/contributors","subscribers_url":"https://api.github.com/repos/coreos/etcdctl/subscribers","subscription_url":"https://api.github.com/repos/coreos/etcdctl/subscription","commits_url":"https://api.github.com/repos/coreos/etcdctl/commits{/sha}","git_commits_url":"https://api.github.com/repos/coreos/etcdctl/git/commits{/sha}","comments_url":"https://api.github.com/repos/coreos/etcdctl/comments{/number}","issue_comment_url":"https://api.github.com/repos/coreos/etcdctl/issues/comments{/number}","contents_url":"https://api.github.com/repos/coreos/etcdctl/contents/{+path}","compare_url":"https://api.github.com/repos/coreos/etcdctl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coreos/etcdctl/merges","archive_url":"https://api.github.com/repos/coreos/etcdctl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coreos/etcdctl/downloads","issues_url":"https://api.github.com/repos/coreos/etcdctl/issues{/number}","pulls_url":"https://api.github.com/repos/coreos/etcdctl/pulls{/number}","milestones_url":"https://api.github.com/repos/coreos/etcdctl/milestones{/number}","notifications_url":"https://api.github.com/repos/coreos/etcdctl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coreos/etcdctl/labels{/name}","releases_url":"https://api.github.com/repos/coreos/etcdctl/releases{/id}","created_at":"2013-08-04T16:53:49Z","updated_at":"2015-06-08T22:37:52Z","pushed_at":"2015-05-22T15:26:26Z","git_url":"git://github.com/coreos/etcdctl.git","ssh_url":"git@github.com:coreos/etcdctl.git","clone_url":"https://github.com/coreos/etcdctl.git","svn_url":"https://github.com/coreos/etcdctl","homepage":"","size":1120,"stargazers_count":179,"watchers_count":179,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":56,"mirror_url":null,"open_issues_count":2,"forks":56,"open_issues":2,"watchers":179,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coreos/etcdctl/pulls/118"},"html":{"href":"https://github.com/coreos/etcdctl/pull/118"},"issue":{"href":"https://api.github.com/repos/coreos/etcdctl/issues/118"},"comments":{"href":"https://api.github.com/repos/coreos/etcdctl/issues/118/comments"},"review_comments":{"href":"https://api.github.com/repos/coreos/etcdctl/pulls/118/comments"},"review_comment":{"href":"https://api.github.com/repos/coreos/etcdctl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coreos/etcdctl/pulls/118/commits"},"statuses":{"href":"https://api.github.com/repos/coreos/etcdctl/statuses/90b68251d99c6a876a66e067e75b4683ca9d98b7"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":10,"deletions":2,"changed_files":1}}