{"action":"opened","number":3421,"pull_request":{"url":"https://api.github.com/repos/gogits/gogs/pulls/3421","id":80764271,"html_url":"https://github.com/gogits/gogs/pull/3421","diff_url":"https://github.com/gogits/gogs/pull/3421.diff","patch_url":"https://github.com/gogits/gogs/pull/3421.patch","issue_url":"https://api.github.com/repos/gogits/gogs/issues/3421","number":3421,"state":"open","locked":false,"title":"Fix #3379: syntax error at or near","user":{"login":"0xbaadf00d","id":1005086,"avatar_url":"https://avatars.githubusercontent.com/u/1005086?v=3","gravatar_id":"","url":"https://api.github.com/users/0xbaadf00d","html_url":"https://github.com/0xbaadf00d","followers_url":"https://api.github.com/users/0xbaadf00d/followers","following_url":"https://api.github.com/users/0xbaadf00d/following{/other_user}","gists_url":"https://api.github.com/users/0xbaadf00d/gists{/gist_id}","starred_url":"https://api.github.com/users/0xbaadf00d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xbaadf00d/subscriptions","organizations_url":"https://api.github.com/users/0xbaadf00d/orgs","repos_url":"https://api.github.com/users/0xbaadf00d/repos","events_url":"https://api.github.com/users/0xbaadf00d/events{/privacy}","received_events_url":"https://api.github.com/users/0xbaadf00d/received_events","type":"User","site_admin":false},"body":"Fix issue when user want leave an organization (issue #3379) and don't have repositories.\r\n\r\nFixed by just adding a check before using the SQL statement `IN` who can't be used with empty list.","created_at":"2016-08-10T09:45:26Z","updated_at":"2016-08-10T09:45:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d2427b89bbd421c5c9230bb404e2c6ee163a8e9b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gogits/gogs/pulls/3421/commits","review_comments_url":"https://api.github.com/repos/gogits/gogs/pulls/3421/comments","review_comment_url":"https://api.github.com/repos/gogits/gogs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/3421/comments","statuses_url":"https://api.github.com/repos/gogits/gogs/statuses/0158cd2a6c70f92e868dfd558a30b4d7fb4608bf","head":{"label":"0xbaadf00d:fix/3379-syntaxerrorsql","ref":"fix/3379-syntaxerrorsql","sha":"0158cd2a6c70f92e868dfd558a30b4d7fb4608bf","user":{"login":"0xbaadf00d","id":1005086,"avatar_url":"https://avatars.githubusercontent.com/u/1005086?v=3","gravatar_id":"","url":"https://api.github.com/users/0xbaadf00d","html_url":"https://github.com/0xbaadf00d","followers_url":"https://api.github.com/users/0xbaadf00d/followers","following_url":"https://api.github.com/users/0xbaadf00d/following{/other_user}","gists_url":"https://api.github.com/users/0xbaadf00d/gists{/gist_id}","starred_url":"https://api.github.com/users/0xbaadf00d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xbaadf00d/subscriptions","organizations_url":"https://api.github.com/users/0xbaadf00d/orgs","repos_url":"https://api.github.com/users/0xbaadf00d/repos","events_url":"https://api.github.com/users/0xbaadf00d/events{/privacy}","received_events_url":"https://api.github.com/users/0xbaadf00d/received_events","type":"User","site_admin":false},"repo":{"id":64876352,"name":"gogs","full_name":"0xbaadf00d/gogs","owner":{"login":"0xbaadf00d","id":1005086,"avatar_url":"https://avatars.githubusercontent.com/u/1005086?v=3","gravatar_id":"","url":"https://api.github.com/users/0xbaadf00d","html_url":"https://github.com/0xbaadf00d","followers_url":"https://api.github.com/users/0xbaadf00d/followers","following_url":"https://api.github.com/users/0xbaadf00d/following{/other_user}","gists_url":"https://api.github.com/users/0xbaadf00d/gists{/gist_id}","starred_url":"https://api.github.com/users/0xbaadf00d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xbaadf00d/subscriptions","organizations_url":"https://api.github.com/users/0xbaadf00d/orgs","repos_url":"https://api.github.com/users/0xbaadf00d/repos","events_url":"https://api.github.com/users/0xbaadf00d/events{/privacy}","received_events_url":"https://api.github.com/users/0xbaadf00d/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/0xbaadf00d/gogs","description":"Gogs (Go Git Service) is a painless self-hosted Git service.","fork":true,"url":"https://api.github.com/repos/0xbaadf00d/gogs","forks_url":"https://api.github.com/repos/0xbaadf00d/gogs/forks","keys_url":"https://api.github.com/repos/0xbaadf00d/gogs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/0xbaadf00d/gogs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/0xbaadf00d/gogs/teams","hooks_url":"https://api.github.com/repos/0xbaadf00d/gogs/hooks","issue_events_url":"https://api.github.com/repos/0xbaadf00d/gogs/issues/events{/number}","events_url":"https://api.github.com/repos/0xbaadf00d/gogs/events","assignees_url":"https://api.github.com/repos/0xbaadf00d/gogs/assignees{/user}","branches_url":"https://api.github.com/repos/0xbaadf00d/gogs/branches{/branch}","tags_url":"https://api.github.com/repos/0xbaadf00d/gogs/tags","blobs_url":"https://api.github.com/repos/0xbaadf00d/gogs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/0xbaadf00d/gogs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/0xbaadf00d/gogs/git/refs{/sha}","trees_url":"https://api.github.com/repos/0xbaadf00d/gogs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/0xbaadf00d/gogs/statuses/{sha}","languages_url":"https://api.github.com/repos/0xbaadf00d/gogs/languages","stargazers_url":"https://api.github.com/repos/0xbaadf00d/gogs/stargazers","contributors_url":"https://api.github.com/repos/0xbaadf00d/gogs/contributors","subscribers_url":"https://api.github.com/repos/0xbaadf00d/gogs/subscribers","subscription_url":"https://api.github.com/repos/0xbaadf00d/gogs/subscription","commits_url":"https://api.github.com/repos/0xbaadf00d/gogs/commits{/sha}","git_commits_url":"https://api.github.com/repos/0xbaadf00d/gogs/git/commits{/sha}","comments_url":"https://api.github.com/repos/0xbaadf00d/gogs/comments{/number}","issue_comment_url":"https://api.github.com/repos/0xbaadf00d/gogs/issues/comments{/number}","contents_url":"https://api.github.com/repos/0xbaadf00d/gogs/contents/{+path}","compare_url":"https://api.github.com/repos/0xbaadf00d/gogs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/0xbaadf00d/gogs/merges","archive_url":"https://api.github.com/repos/0xbaadf00d/gogs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/0xbaadf00d/gogs/downloads","issues_url":"https://api.github.com/repos/0xbaadf00d/gogs/issues{/number}","pulls_url":"https://api.github.com/repos/0xbaadf00d/gogs/pulls{/number}","milestones_url":"https://api.github.com/repos/0xbaadf00d/gogs/milestones{/number}","notifications_url":"https://api.github.com/repos/0xbaadf00d/gogs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/0xbaadf00d/gogs/labels{/name}","releases_url":"https://api.github.com/repos/0xbaadf00d/gogs/releases{/id}","deployments_url":"https://api.github.com/repos/0xbaadf00d/gogs/deployments","created_at":"2016-08-03T20:16:33Z","updated_at":"2016-08-04T06:07:09Z","pushed_at":"2016-08-10T09:42:30Z","git_url":"git://github.com/0xbaadf00d/gogs.git","ssh_url":"git@github.com:0xbaadf00d/gogs.git","clone_url":"https://github.com/0xbaadf00d/gogs.git","svn_url":"https://github.com/0xbaadf00d/gogs","homepage":"https://gogs.io","size":71815,"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":"gogits:master","ref":"master","sha":"87b408a2e516bb992ff6a4c19da27fbdbc95ceb9","user":{"login":"gogits","id":6656686,"avatar_url":"https://avatars.githubusercontent.com/u/6656686?v=3","gravatar_id":"","url":"https://api.github.com/users/gogits","html_url":"https://github.com/gogits","followers_url":"https://api.github.com/users/gogits/followers","following_url":"https://api.github.com/users/gogits/following{/other_user}","gists_url":"https://api.github.com/users/gogits/gists{/gist_id}","starred_url":"https://api.github.com/users/gogits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogits/subscriptions","organizations_url":"https://api.github.com/users/gogits/orgs","repos_url":"https://api.github.com/users/gogits/repos","events_url":"https://api.github.com/users/gogits/events{/privacy}","received_events_url":"https://api.github.com/users/gogits/received_events","type":"Organization","site_admin":false},"repo":{"id":16752620,"name":"gogs","full_name":"gogits/gogs","owner":{"login":"gogits","id":6656686,"avatar_url":"https://avatars.githubusercontent.com/u/6656686?v=3","gravatar_id":"","url":"https://api.github.com/users/gogits","html_url":"https://github.com/gogits","followers_url":"https://api.github.com/users/gogits/followers","following_url":"https://api.github.com/users/gogits/following{/other_user}","gists_url":"https://api.github.com/users/gogits/gists{/gist_id}","starred_url":"https://api.github.com/users/gogits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogits/subscriptions","organizations_url":"https://api.github.com/users/gogits/orgs","repos_url":"https://api.github.com/users/gogits/repos","events_url":"https://api.github.com/users/gogits/events{/privacy}","received_events_url":"https://api.github.com/users/gogits/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gogits/gogs","description":"Gogs (Go Git Service) is a painless self-hosted Git service.","fork":false,"url":"https://api.github.com/repos/gogits/gogs","forks_url":"https://api.github.com/repos/gogits/gogs/forks","keys_url":"https://api.github.com/repos/gogits/gogs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gogits/gogs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gogits/gogs/teams","hooks_url":"https://api.github.com/repos/gogits/gogs/hooks","issue_events_url":"https://api.github.com/repos/gogits/gogs/issues/events{/number}","events_url":"https://api.github.com/repos/gogits/gogs/events","assignees_url":"https://api.github.com/repos/gogits/gogs/assignees{/user}","branches_url":"https://api.github.com/repos/gogits/gogs/branches{/branch}","tags_url":"https://api.github.com/repos/gogits/gogs/tags","blobs_url":"https://api.github.com/repos/gogits/gogs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gogits/gogs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gogits/gogs/git/refs{/sha}","trees_url":"https://api.github.com/repos/gogits/gogs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gogits/gogs/statuses/{sha}","languages_url":"https://api.github.com/repos/gogits/gogs/languages","stargazers_url":"https://api.github.com/repos/gogits/gogs/stargazers","contributors_url":"https://api.github.com/repos/gogits/gogs/contributors","subscribers_url":"https://api.github.com/repos/gogits/gogs/subscribers","subscription_url":"https://api.github.com/repos/gogits/gogs/subscription","commits_url":"https://api.github.com/repos/gogits/gogs/commits{/sha}","git_commits_url":"https://api.github.com/repos/gogits/gogs/git/commits{/sha}","comments_url":"https://api.github.com/repos/gogits/gogs/comments{/number}","issue_comment_url":"https://api.github.com/repos/gogits/gogs/issues/comments{/number}","contents_url":"https://api.github.com/repos/gogits/gogs/contents/{+path}","compare_url":"https://api.github.com/repos/gogits/gogs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gogits/gogs/merges","archive_url":"https://api.github.com/repos/gogits/gogs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gogits/gogs/downloads","issues_url":"https://api.github.com/repos/gogits/gogs/issues{/number}","pulls_url":"https://api.github.com/repos/gogits/gogs/pulls{/number}","milestones_url":"https://api.github.com/repos/gogits/gogs/milestones{/number}","notifications_url":"https://api.github.com/repos/gogits/gogs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gogits/gogs/labels{/name}","releases_url":"https://api.github.com/repos/gogits/gogs/releases{/id}","deployments_url":"https://api.github.com/repos/gogits/gogs/deployments","created_at":"2014-02-12T01:57:08Z","updated_at":"2016-08-10T09:33:14Z","pushed_at":"2016-08-10T09:45:26Z","git_url":"git://github.com/gogits/gogs.git","ssh_url":"git@github.com:gogits/gogs.git","clone_url":"https://github.com/gogits/gogs.git","svn_url":"https://github.com/gogits/gogs","homepage":"https://gogs.io","size":85341,"stargazers_count":15081,"watchers_count":15081,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1589,"mirror_url":null,"open_issues_count":406,"forks":1589,"open_issues":406,"watchers":15081,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gogits/gogs/pulls/3421"},"html":{"href":"https://github.com/gogits/gogs/pull/3421"},"issue":{"href":"https://api.github.com/repos/gogits/gogs/issues/3421"},"comments":{"href":"https://api.github.com/repos/gogits/gogs/issues/3421/comments"},"review_comments":{"href":"https://api.github.com/repos/gogits/gogs/pulls/3421/comments"},"review_comment":{"href":"https://api.github.com/repos/gogits/gogs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gogits/gogs/pulls/3421/commits"},"statuses":{"href":"https://api.github.com/repos/gogits/gogs/statuses/0158cd2a6c70f92e868dfd558a30b4d7fb4608bf"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":11,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"0xbaadf00d"}}