{"action":"closed","number":354,"pull_request":{"url":"https://api.github.com/repos/ostreedev/ostree/pulls/354","id":74508905,"html_url":"https://github.com/ostreedev/ostree/pull/354","diff_url":"https://github.com/ostreedev/ostree/pull/354.diff","patch_url":"https://github.com/ostreedev/ostree/pull/354.patch","issue_url":"https://api.github.com/repos/ostreedev/ostree/issues/354","number":354,"state":"closed","locked":false,"title":"[merged] refs: allow overwrite of empty folders","user":{"login":"yuqi-zhang","id":19409726,"avatar_url":"https://avatars.githubusercontent.com/u/19409726?v=3","gravatar_id":"","url":"https://api.github.com/users/yuqi-zhang","html_url":"https://github.com/yuqi-zhang","followers_url":"https://api.github.com/users/yuqi-zhang/followers","following_url":"https://api.github.com/users/yuqi-zhang/following{/other_user}","gists_url":"https://api.github.com/users/yuqi-zhang/gists{/gist_id}","starred_url":"https://api.github.com/users/yuqi-zhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuqi-zhang/subscriptions","organizations_url":"https://api.github.com/users/yuqi-zhang/orgs","repos_url":"https://api.github.com/users/yuqi-zhang/repos","events_url":"https://api.github.com/users/yuqi-zhang/events{/privacy}","received_events_url":"https://api.github.com/users/yuqi-zhang/received_events","type":"User","site_admin":false},"body":"We noticed that once a ref folder is created, there is no existing\r\ncommand that can remove it. For example, once \"foo/bar\" is created,\r\neven if the user deletes foo or all the refs under foo, the folder\r\nwill persist.\r\n\r\nNow when the user attempts to create a ref \"foo\" either through commit\r\nor refs --create, if a folder \"foo\" exists but is empty of refs, the\r\nfolder is removed and the new ref \"foo\" is created.\r\n\r\nNew unit tests in tests-ref.sh verify this functionality.","created_at":"2016-06-20T20:37:26Z","updated_at":"2016-06-21T20:30:50Z","closed_at":"2016-06-21T20:30:50Z","merged_at":null,"merge_commit_sha":"c4635bcb66c3de37ff6fb5f383a4e7a6640db2a2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ostreedev/ostree/pulls/354/commits","review_comments_url":"https://api.github.com/repos/ostreedev/ostree/pulls/354/comments","review_comment_url":"https://api.github.com/repos/ostreedev/ostree/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ostreedev/ostree/issues/354/comments","statuses_url":"https://api.github.com/repos/ostreedev/ostree/statuses/2ab5f3038cc67a0bae9ca8f2c0a651ff01b5f60a","head":{"label":"yuqi-zhang:folders","ref":"folders","sha":"2ab5f3038cc67a0bae9ca8f2c0a651ff01b5f60a","user":{"login":"yuqi-zhang","id":19409726,"avatar_url":"https://avatars.githubusercontent.com/u/19409726?v=3","gravatar_id":"","url":"https://api.github.com/users/yuqi-zhang","html_url":"https://github.com/yuqi-zhang","followers_url":"https://api.github.com/users/yuqi-zhang/followers","following_url":"https://api.github.com/users/yuqi-zhang/following{/other_user}","gists_url":"https://api.github.com/users/yuqi-zhang/gists{/gist_id}","starred_url":"https://api.github.com/users/yuqi-zhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuqi-zhang/subscriptions","organizations_url":"https://api.github.com/users/yuqi-zhang/orgs","repos_url":"https://api.github.com/users/yuqi-zhang/repos","events_url":"https://api.github.com/users/yuqi-zhang/events{/privacy}","received_events_url":"https://api.github.com/users/yuqi-zhang/received_events","type":"User","site_admin":false},"repo":{"id":60357762,"name":"ostree","full_name":"yuqi-zhang/ostree","owner":{"login":"yuqi-zhang","id":19409726,"avatar_url":"https://avatars.githubusercontent.com/u/19409726?v=3","gravatar_id":"","url":"https://api.github.com/users/yuqi-zhang","html_url":"https://github.com/yuqi-zhang","followers_url":"https://api.github.com/users/yuqi-zhang/followers","following_url":"https://api.github.com/users/yuqi-zhang/following{/other_user}","gists_url":"https://api.github.com/users/yuqi-zhang/gists{/gist_id}","starred_url":"https://api.github.com/users/yuqi-zhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuqi-zhang/subscriptions","organizations_url":"https://api.github.com/users/yuqi-zhang/orgs","repos_url":"https://api.github.com/users/yuqi-zhang/repos","events_url":"https://api.github.com/users/yuqi-zhang/events{/privacy}","received_events_url":"https://api.github.com/users/yuqi-zhang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yuqi-zhang/ostree","description":"Operating system and container binary deployment and upgrades","fork":true,"url":"https://api.github.com/repos/yuqi-zhang/ostree","forks_url":"https://api.github.com/repos/yuqi-zhang/ostree/forks","keys_url":"https://api.github.com/repos/yuqi-zhang/ostree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yuqi-zhang/ostree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yuqi-zhang/ostree/teams","hooks_url":"https://api.github.com/repos/yuqi-zhang/ostree/hooks","issue_events_url":"https://api.github.com/repos/yuqi-zhang/ostree/issues/events{/number}","events_url":"https://api.github.com/repos/yuqi-zhang/ostree/events","assignees_url":"https://api.github.com/repos/yuqi-zhang/ostree/assignees{/user}","branches_url":"https://api.github.com/repos/yuqi-zhang/ostree/branches{/branch}","tags_url":"https://api.github.com/repos/yuqi-zhang/ostree/tags","blobs_url":"https://api.github.com/repos/yuqi-zhang/ostree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yuqi-zhang/ostree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yuqi-zhang/ostree/git/refs{/sha}","trees_url":"https://api.github.com/repos/yuqi-zhang/ostree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yuqi-zhang/ostree/statuses/{sha}","languages_url":"https://api.github.com/repos/yuqi-zhang/ostree/languages","stargazers_url":"https://api.github.com/repos/yuqi-zhang/ostree/stargazers","contributors_url":"https://api.github.com/repos/yuqi-zhang/ostree/contributors","subscribers_url":"https://api.github.com/repos/yuqi-zhang/ostree/subscribers","subscription_url":"https://api.github.com/repos/yuqi-zhang/ostree/subscription","commits_url":"https://api.github.com/repos/yuqi-zhang/ostree/commits{/sha}","git_commits_url":"https://api.github.com/repos/yuqi-zhang/ostree/git/commits{/sha}","comments_url":"https://api.github.com/repos/yuqi-zhang/ostree/comments{/number}","issue_comment_url":"https://api.github.com/repos/yuqi-zhang/ostree/issues/comments{/number}","contents_url":"https://api.github.com/repos/yuqi-zhang/ostree/contents/{+path}","compare_url":"https://api.github.com/repos/yuqi-zhang/ostree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yuqi-zhang/ostree/merges","archive_url":"https://api.github.com/repos/yuqi-zhang/ostree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yuqi-zhang/ostree/downloads","issues_url":"https://api.github.com/repos/yuqi-zhang/ostree/issues{/number}","pulls_url":"https://api.github.com/repos/yuqi-zhang/ostree/pulls{/number}","milestones_url":"https://api.github.com/repos/yuqi-zhang/ostree/milestones{/number}","notifications_url":"https://api.github.com/repos/yuqi-zhang/ostree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yuqi-zhang/ostree/labels{/name}","releases_url":"https://api.github.com/repos/yuqi-zhang/ostree/releases{/id}","deployments_url":"https://api.github.com/repos/yuqi-zhang/ostree/deployments","created_at":"2016-06-03T15:21:35Z","updated_at":"2016-06-03T15:21:38Z","pushed_at":"2016-06-21T20:04:56Z","git_url":"git://github.com/yuqi-zhang/ostree.git","ssh_url":"git@github.com:yuqi-zhang/ostree.git","clone_url":"https://github.com/yuqi-zhang/ostree.git","svn_url":"https://github.com/yuqi-zhang/ostree","homepage":"https://ostree.readthedocs.org/en/latest/","size":9889,"stargazers_count":0,"watchers_count":0,"language":"C","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":"ostreedev:master","ref":"master","sha":"f6ce04e4807c2934a5aba5522201998c815c7233","user":{"login":"ostreedev","id":17928213,"avatar_url":"https://avatars.githubusercontent.com/u/17928213?v=3","gravatar_id":"","url":"https://api.github.com/users/ostreedev","html_url":"https://github.com/ostreedev","followers_url":"https://api.github.com/users/ostreedev/followers","following_url":"https://api.github.com/users/ostreedev/following{/other_user}","gists_url":"https://api.github.com/users/ostreedev/gists{/gist_id}","starred_url":"https://api.github.com/users/ostreedev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ostreedev/subscriptions","organizations_url":"https://api.github.com/users/ostreedev/orgs","repos_url":"https://api.github.com/users/ostreedev/repos","events_url":"https://api.github.com/users/ostreedev/events{/privacy}","received_events_url":"https://api.github.com/users/ostreedev/received_events","type":"Organization","site_admin":false},"repo":{"id":4614541,"name":"ostree","full_name":"ostreedev/ostree","owner":{"login":"ostreedev","id":17928213,"avatar_url":"https://avatars.githubusercontent.com/u/17928213?v=3","gravatar_id":"","url":"https://api.github.com/users/ostreedev","html_url":"https://github.com/ostreedev","followers_url":"https://api.github.com/users/ostreedev/followers","following_url":"https://api.github.com/users/ostreedev/following{/other_user}","gists_url":"https://api.github.com/users/ostreedev/gists{/gist_id}","starred_url":"https://api.github.com/users/ostreedev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ostreedev/subscriptions","organizations_url":"https://api.github.com/users/ostreedev/orgs","repos_url":"https://api.github.com/users/ostreedev/repos","events_url":"https://api.github.com/users/ostreedev/events{/privacy}","received_events_url":"https://api.github.com/users/ostreedev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ostreedev/ostree","description":"Operating system and container binary deployment and upgrades","fork":false,"url":"https://api.github.com/repos/ostreedev/ostree","forks_url":"https://api.github.com/repos/ostreedev/ostree/forks","keys_url":"https://api.github.com/repos/ostreedev/ostree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ostreedev/ostree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ostreedev/ostree/teams","hooks_url":"https://api.github.com/repos/ostreedev/ostree/hooks","issue_events_url":"https://api.github.com/repos/ostreedev/ostree/issues/events{/number}","events_url":"https://api.github.com/repos/ostreedev/ostree/events","assignees_url":"https://api.github.com/repos/ostreedev/ostree/assignees{/user}","branches_url":"https://api.github.com/repos/ostreedev/ostree/branches{/branch}","tags_url":"https://api.github.com/repos/ostreedev/ostree/tags","blobs_url":"https://api.github.com/repos/ostreedev/ostree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ostreedev/ostree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ostreedev/ostree/git/refs{/sha}","trees_url":"https://api.github.com/repos/ostreedev/ostree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ostreedev/ostree/statuses/{sha}","languages_url":"https://api.github.com/repos/ostreedev/ostree/languages","stargazers_url":"https://api.github.com/repos/ostreedev/ostree/stargazers","contributors_url":"https://api.github.com/repos/ostreedev/ostree/contributors","subscribers_url":"https://api.github.com/repos/ostreedev/ostree/subscribers","subscription_url":"https://api.github.com/repos/ostreedev/ostree/subscription","commits_url":"https://api.github.com/repos/ostreedev/ostree/commits{/sha}","git_commits_url":"https://api.github.com/repos/ostreedev/ostree/git/commits{/sha}","comments_url":"https://api.github.com/repos/ostreedev/ostree/comments{/number}","issue_comment_url":"https://api.github.com/repos/ostreedev/ostree/issues/comments{/number}","contents_url":"https://api.github.com/repos/ostreedev/ostree/contents/{+path}","compare_url":"https://api.github.com/repos/ostreedev/ostree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ostreedev/ostree/merges","archive_url":"https://api.github.com/repos/ostreedev/ostree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ostreedev/ostree/downloads","issues_url":"https://api.github.com/repos/ostreedev/ostree/issues{/number}","pulls_url":"https://api.github.com/repos/ostreedev/ostree/pulls{/number}","milestones_url":"https://api.github.com/repos/ostreedev/ostree/milestones{/number}","notifications_url":"https://api.github.com/repos/ostreedev/ostree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ostreedev/ostree/labels{/name}","releases_url":"https://api.github.com/repos/ostreedev/ostree/releases{/id}","deployments_url":"https://api.github.com/repos/ostreedev/ostree/deployments","created_at":"2012-06-10T11:22:40Z","updated_at":"2016-06-03T13:48:24Z","pushed_at":"2016-06-21T20:30:49Z","git_url":"git://github.com/ostreedev/ostree.git","ssh_url":"git@github.com:ostreedev/ostree.git","clone_url":"https://github.com/ostreedev/ostree.git","svn_url":"https://github.com/ostreedev/ostree","homepage":"https://ostree.readthedocs.org/en/latest/","size":10994,"stargazers_count":40,"watchers_count":40,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":21,"forks":32,"open_issues":21,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ostreedev/ostree/pulls/354"},"html":{"href":"https://github.com/ostreedev/ostree/pull/354"},"issue":{"href":"https://api.github.com/repos/ostreedev/ostree/issues/354"},"comments":{"href":"https://api.github.com/repos/ostreedev/ostree/issues/354/comments"},"review_comments":{"href":"https://api.github.com/repos/ostreedev/ostree/pulls/354/comments"},"review_comment":{"href":"https://api.github.com/repos/ostreedev/ostree/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ostreedev/ostree/pulls/354/commits"},"statuses":{"href":"https://api.github.com/repos/ostreedev/ostree/statuses/2ab5f3038cc67a0bae9ca8f2c0a651ff01b5f60a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":5,"review_comments":17,"commits":3,"additions":66,"deletions":5,"changed_files":4}}
{"actor":{"display_login":"rh-atomic-bot"}}