{"action":"closed","number":300,"pull_request":{"url":"https://api.github.com/repos/smira/aptly/pulls/300","id":44347333,"html_url":"https://github.com/smira/aptly/pull/300","diff_url":"https://github.com/smira/aptly/pull/300.diff","patch_url":"https://github.com/smira/aptly/pull/300.patch","issue_url":"https://api.github.com/repos/smira/aptly/issues/300","number":300,"state":"closed","locked":false,"title":"Add a flag to unlock database after each API request","user":{"login":"vincentbernat","id":631446,"avatar_url":"https://avatars.githubusercontent.com/u/631446?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentbernat","html_url":"https://github.com/vincentbernat","followers_url":"https://api.github.com/users/vincentbernat/followers","following_url":"https://api.github.com/users/vincentbernat/following{/other_user}","gists_url":"https://api.github.com/users/vincentbernat/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentbernat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentbernat/subscriptions","organizations_url":"https://api.github.com/users/vincentbernat/orgs","repos_url":"https://api.github.com/users/vincentbernat/repos","events_url":"https://api.github.com/users/vincentbernat/events{/privacy}","received_events_url":"https://api.github.com/users/vincentbernat/received_events","type":"User","site_admin":false},"body":"After the first API request, the database was locked as long as the API\r\nserver is running. This prevents a user to also use the command-line\r\nclient. This commit adds a new flag `-no-lock` that will close the\r\ndatabase after each API request.\r\n\r\nCloses #234","created_at":"2015-09-07T11:46:49Z","updated_at":"2016-01-24T16:53:17Z","closed_at":"2016-01-24T16:53:17Z","merged_at":"2016-01-24T16:53:17Z","merge_commit_sha":"4ca64a6d9244c8d356c1e0a932fa59d7896d9288","assignee":null,"milestone":{"url":"https://api.github.com/repos/smira/aptly/milestones/13","html_url":"https://github.com/smira/aptly/milestones/v0.9.6","labels_url":"https://api.github.com/repos/smira/aptly/milestones/13/labels","id":1020064,"number":13,"title":"v0.9.6","description":"","creator":{"login":"smira","id":55211,"avatar_url":"https://avatars.githubusercontent.com/u/55211?v=3","gravatar_id":"","url":"https://api.github.com/users/smira","html_url":"https://github.com/smira","followers_url":"https://api.github.com/users/smira/followers","following_url":"https://api.github.com/users/smira/following{/other_user}","gists_url":"https://api.github.com/users/smira/gists{/gist_id}","starred_url":"https://api.github.com/users/smira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smira/subscriptions","organizations_url":"https://api.github.com/users/smira/orgs","repos_url":"https://api.github.com/users/smira/repos","events_url":"https://api.github.com/users/smira/events{/privacy}","received_events_url":"https://api.github.com/users/smira/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":24,"state":"open","created_at":"2015-03-13T10:24:41Z","updated_at":"2016-01-24T16:53:17Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/smira/aptly/pulls/300/commits","review_comments_url":"https://api.github.com/repos/smira/aptly/pulls/300/comments","review_comment_url":"https://api.github.com/repos/smira/aptly/pulls/comments{/number}","comments_url":"https://api.github.com/repos/smira/aptly/issues/300/comments","statuses_url":"https://api.github.com/repos/smira/aptly/statuses/7f6a52019f812dd54c7cb224256d0387ec8d0204","head":{"label":"vincentbernat:fix/api-serve-lock","ref":"fix/api-serve-lock","sha":"7f6a52019f812dd54c7cb224256d0387ec8d0204","user":{"login":"vincentbernat","id":631446,"avatar_url":"https://avatars.githubusercontent.com/u/631446?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentbernat","html_url":"https://github.com/vincentbernat","followers_url":"https://api.github.com/users/vincentbernat/followers","following_url":"https://api.github.com/users/vincentbernat/following{/other_user}","gists_url":"https://api.github.com/users/vincentbernat/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentbernat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentbernat/subscriptions","organizations_url":"https://api.github.com/users/vincentbernat/orgs","repos_url":"https://api.github.com/users/vincentbernat/repos","events_url":"https://api.github.com/users/vincentbernat/events{/privacy}","received_events_url":"https://api.github.com/users/vincentbernat/received_events","type":"User","site_admin":false},"repo":{"id":42049429,"name":"aptly","full_name":"vincentbernat/aptly","owner":{"login":"vincentbernat","id":631446,"avatar_url":"https://avatars.githubusercontent.com/u/631446?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentbernat","html_url":"https://github.com/vincentbernat","followers_url":"https://api.github.com/users/vincentbernat/followers","following_url":"https://api.github.com/users/vincentbernat/following{/other_user}","gists_url":"https://api.github.com/users/vincentbernat/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentbernat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentbernat/subscriptions","organizations_url":"https://api.github.com/users/vincentbernat/orgs","repos_url":"https://api.github.com/users/vincentbernat/repos","events_url":"https://api.github.com/users/vincentbernat/events{/privacy}","received_events_url":"https://api.github.com/users/vincentbernat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vincentbernat/aptly","description":"aptly - Debian repository management tool","fork":true,"url":"https://api.github.com/repos/vincentbernat/aptly","forks_url":"https://api.github.com/repos/vincentbernat/aptly/forks","keys_url":"https://api.github.com/repos/vincentbernat/aptly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vincentbernat/aptly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vincentbernat/aptly/teams","hooks_url":"https://api.github.com/repos/vincentbernat/aptly/hooks","issue_events_url":"https://api.github.com/repos/vincentbernat/aptly/issues/events{/number}","events_url":"https://api.github.com/repos/vincentbernat/aptly/events","assignees_url":"https://api.github.com/repos/vincentbernat/aptly/assignees{/user}","branches_url":"https://api.github.com/repos/vincentbernat/aptly/branches{/branch}","tags_url":"https://api.github.com/repos/vincentbernat/aptly/tags","blobs_url":"https://api.github.com/repos/vincentbernat/aptly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vincentbernat/aptly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vincentbernat/aptly/git/refs{/sha}","trees_url":"https://api.github.com/repos/vincentbernat/aptly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vincentbernat/aptly/statuses/{sha}","languages_url":"https://api.github.com/repos/vincentbernat/aptly/languages","stargazers_url":"https://api.github.com/repos/vincentbernat/aptly/stargazers","contributors_url":"https://api.github.com/repos/vincentbernat/aptly/contributors","subscribers_url":"https://api.github.com/repos/vincentbernat/aptly/subscribers","subscription_url":"https://api.github.com/repos/vincentbernat/aptly/subscription","commits_url":"https://api.github.com/repos/vincentbernat/aptly/commits{/sha}","git_commits_url":"https://api.github.com/repos/vincentbernat/aptly/git/commits{/sha}","comments_url":"https://api.github.com/repos/vincentbernat/aptly/comments{/number}","issue_comment_url":"https://api.github.com/repos/vincentbernat/aptly/issues/comments{/number}","contents_url":"https://api.github.com/repos/vincentbernat/aptly/contents/{+path}","compare_url":"https://api.github.com/repos/vincentbernat/aptly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vincentbernat/aptly/merges","archive_url":"https://api.github.com/repos/vincentbernat/aptly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vincentbernat/aptly/downloads","issues_url":"https://api.github.com/repos/vincentbernat/aptly/issues{/number}","pulls_url":"https://api.github.com/repos/vincentbernat/aptly/pulls{/number}","milestones_url":"https://api.github.com/repos/vincentbernat/aptly/milestones{/number}","notifications_url":"https://api.github.com/repos/vincentbernat/aptly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vincentbernat/aptly/labels{/name}","releases_url":"https://api.github.com/repos/vincentbernat/aptly/releases{/id}","deployments_url":"https://api.github.com/repos/vincentbernat/aptly/deployments","created_at":"2015-09-07T11:33:10Z","updated_at":"2015-09-09T06:10:10Z","pushed_at":"2015-10-05T07:56:31Z","git_url":"git://github.com/vincentbernat/aptly.git","ssh_url":"git@github.com:vincentbernat/aptly.git","clone_url":"https://github.com/vincentbernat/aptly.git","svn_url":"https://github.com/vincentbernat/aptly","homepage":"https://www.aptly.info/","size":5369,"stargazers_count":2,"watchers_count":2,"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":2,"default_branch":"master"}},"base":{"label":"smira:master","ref":"master","sha":"a294a91685042555627d7133f8e7225d2939ea73","user":{"login":"smira","id":55211,"avatar_url":"https://avatars.githubusercontent.com/u/55211?v=3","gravatar_id":"","url":"https://api.github.com/users/smira","html_url":"https://github.com/smira","followers_url":"https://api.github.com/users/smira/followers","following_url":"https://api.github.com/users/smira/following{/other_user}","gists_url":"https://api.github.com/users/smira/gists{/gist_id}","starred_url":"https://api.github.com/users/smira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smira/subscriptions","organizations_url":"https://api.github.com/users/smira/orgs","repos_url":"https://api.github.com/users/smira/repos","events_url":"https://api.github.com/users/smira/events{/privacy}","received_events_url":"https://api.github.com/users/smira/received_events","type":"User","site_admin":false},"repo":{"id":15171803,"name":"aptly","full_name":"smira/aptly","owner":{"login":"smira","id":55211,"avatar_url":"https://avatars.githubusercontent.com/u/55211?v=3","gravatar_id":"","url":"https://api.github.com/users/smira","html_url":"https://github.com/smira","followers_url":"https://api.github.com/users/smira/followers","following_url":"https://api.github.com/users/smira/following{/other_user}","gists_url":"https://api.github.com/users/smira/gists{/gist_id}","starred_url":"https://api.github.com/users/smira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smira/subscriptions","organizations_url":"https://api.github.com/users/smira/orgs","repos_url":"https://api.github.com/users/smira/repos","events_url":"https://api.github.com/users/smira/events{/privacy}","received_events_url":"https://api.github.com/users/smira/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/smira/aptly","description":"aptly - Debian repository management tool","fork":false,"url":"https://api.github.com/repos/smira/aptly","forks_url":"https://api.github.com/repos/smira/aptly/forks","keys_url":"https://api.github.com/repos/smira/aptly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smira/aptly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smira/aptly/teams","hooks_url":"https://api.github.com/repos/smira/aptly/hooks","issue_events_url":"https://api.github.com/repos/smira/aptly/issues/events{/number}","events_url":"https://api.github.com/repos/smira/aptly/events","assignees_url":"https://api.github.com/repos/smira/aptly/assignees{/user}","branches_url":"https://api.github.com/repos/smira/aptly/branches{/branch}","tags_url":"https://api.github.com/repos/smira/aptly/tags","blobs_url":"https://api.github.com/repos/smira/aptly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smira/aptly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smira/aptly/git/refs{/sha}","trees_url":"https://api.github.com/repos/smira/aptly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smira/aptly/statuses/{sha}","languages_url":"https://api.github.com/repos/smira/aptly/languages","stargazers_url":"https://api.github.com/repos/smira/aptly/stargazers","contributors_url":"https://api.github.com/repos/smira/aptly/contributors","subscribers_url":"https://api.github.com/repos/smira/aptly/subscribers","subscription_url":"https://api.github.com/repos/smira/aptly/subscription","commits_url":"https://api.github.com/repos/smira/aptly/commits{/sha}","git_commits_url":"https://api.github.com/repos/smira/aptly/git/commits{/sha}","comments_url":"https://api.github.com/repos/smira/aptly/comments{/number}","issue_comment_url":"https://api.github.com/repos/smira/aptly/issues/comments{/number}","contents_url":"https://api.github.com/repos/smira/aptly/contents/{+path}","compare_url":"https://api.github.com/repos/smira/aptly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smira/aptly/merges","archive_url":"https://api.github.com/repos/smira/aptly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smira/aptly/downloads","issues_url":"https://api.github.com/repos/smira/aptly/issues{/number}","pulls_url":"https://api.github.com/repos/smira/aptly/pulls{/number}","milestones_url":"https://api.github.com/repos/smira/aptly/milestones{/number}","notifications_url":"https://api.github.com/repos/smira/aptly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smira/aptly/labels{/name}","releases_url":"https://api.github.com/repos/smira/aptly/releases{/id}","deployments_url":"https://api.github.com/repos/smira/aptly/deployments","created_at":"2013-12-13T19:14:53Z","updated_at":"2016-01-21T21:06:54Z","pushed_at":"2016-01-24T16:53:17Z","git_url":"git://github.com/smira/aptly.git","ssh_url":"git@github.com:smira/aptly.git","clone_url":"https://github.com/smira/aptly.git","svn_url":"https://github.com/smira/aptly","homepage":"https://www.aptly.info/","size":5724,"stargazers_count":969,"watchers_count":969,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":109,"mirror_url":null,"open_issues_count":86,"forks":109,"open_issues":86,"watchers":969,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/smira/aptly/pulls/300"},"html":{"href":"https://github.com/smira/aptly/pull/300"},"issue":{"href":"https://api.github.com/repos/smira/aptly/issues/300"},"comments":{"href":"https://api.github.com/repos/smira/aptly/issues/300/comments"},"review_comments":{"href":"https://api.github.com/repos/smira/aptly/pulls/300/comments"},"review_comment":{"href":"https://api.github.com/repos/smira/aptly/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/smira/aptly/pulls/300/commits"},"statuses":{"href":"https://api.github.com/repos/smira/aptly/statuses/7f6a52019f812dd54c7cb224256d0387ec8d0204"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"smira","id":55211,"avatar_url":"https://avatars.githubusercontent.com/u/55211?v=3","gravatar_id":"","url":"https://api.github.com/users/smira","html_url":"https://github.com/smira","followers_url":"https://api.github.com/users/smira/followers","following_url":"https://api.github.com/users/smira/following{/other_user}","gists_url":"https://api.github.com/users/smira/gists{/gist_id}","starred_url":"https://api.github.com/users/smira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smira/subscriptions","organizations_url":"https://api.github.com/users/smira/orgs","repos_url":"https://api.github.com/users/smira/repos","events_url":"https://api.github.com/users/smira/events{/privacy}","received_events_url":"https://api.github.com/users/smira/received_events","type":"User","site_admin":false},"comments":16,"review_comments":2,"commits":2,"additions":104,"deletions":20,"changed_files":4}}