{"action":"created","comment":{"url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/pulls/comments/72394919","id":72394919,"diff_hunk":"@@ -138,8 +151,12 @@ def accept(self):\n         self.save()\n         return object_\n \n+    @transaction.atomic\n     def reject(self):\n         \"\"\"Reject the request\"\"\"\n+        if self.state != RequestStates.OPEN:\n+            log.warning('Request (id:{}) already accepted'.format(self.id))","path":"powerdns/models/requests.py","position":73,"original_position":73,"commit_id":"55614e82cbcc859647bdac0818c8f8a71dcc85cc","original_commit_id":"55614e82cbcc859647bdac0818c8f8a71dcc85cc","user":{"login":"mkurek","id":107437,"avatar_url":"https://avatars.githubusercontent.com/u/107437?v=3","gravatar_id":"","url":"https://api.github.com/users/mkurek","html_url":"https://github.com/mkurek","followers_url":"https://api.github.com/users/mkurek/followers","following_url":"https://api.github.com/users/mkurek/following{/other_user}","gists_url":"https://api.github.com/users/mkurek/gists{/gist_id}","starred_url":"https://api.github.com/users/mkurek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkurek/subscriptions","organizations_url":"https://api.github.com/users/mkurek/orgs","repos_url":"https://api.github.com/users/mkurek/repos","events_url":"https://api.github.com/users/mkurek/events{/privacy}","received_events_url":"https://api.github.com/users/mkurek/received_events","type":"User","site_admin":false},"body":"accepted -> rejected","created_at":"2016-07-27T07:50:05Z","updated_at":"2016-07-27T07:50:05Z","html_url":"https://github.com/allegro/django-powerdns-dnssec/pull/133#discussion_r72394919","pull_request_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/pulls/133","_links":{"self":{"href":"https://api.github.com/repos/allegro/django-powerdns-dnssec/pulls/comments/72394919"},"html":{"href":"https://github.com/allegro/django-powerdns-dnssec/pull/133#discussion_r72394919"},"pull_request":{"href":"https://api.github.com/repos/allegro/django-powerdns-dnssec/pulls/133"}}},"pull_request":{"url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/pulls/133","id":75973398,"html_url":"https://github.com/allegro/django-powerdns-dnssec/pull/133","diff_url":"https://github.com/allegro/django-powerdns-dnssec/pull/133.diff","patch_url":"https://github.com/allegro/django-powerdns-dnssec/pull/133.patch","issue_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/issues/133","number":133,"state":"open","locked":false,"title":"Stop accept(..) & reject(..) if request not open","user":{"login":"xliiv","id":298994,"avatar_url":"https://avatars.githubusercontent.com/u/298994?v=3","gravatar_id":"","url":"https://api.github.com/users/xliiv","html_url":"https://github.com/xliiv","followers_url":"https://api.github.com/users/xliiv/followers","following_url":"https://api.github.com/users/xliiv/following{/other_user}","gists_url":"https://api.github.com/users/xliiv/gists{/gist_id}","starred_url":"https://api.github.com/users/xliiv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xliiv/subscriptions","organizations_url":"https://api.github.com/users/xliiv/orgs","repos_url":"https://api.github.com/users/xliiv/repos","events_url":"https://api.github.com/users/xliiv/events{/privacy}","received_events_url":"https://api.github.com/users/xliiv/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-01T12:35:56Z","updated_at":"2016-07-27T07:50:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3f62b5f1df99ebcf95ce0f8788f26803b15c79e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/pulls/133/commits","review_comments_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/pulls/133/comments","review_comment_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/pulls/comments{/number}","comments_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/issues/133/comments","statuses_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/statuses/55614e82cbcc859647bdac0818c8f8a71dcc85cc","head":{"label":"xliiv:ensure-one-accept","ref":"ensure-one-accept","sha":"55614e82cbcc859647bdac0818c8f8a71dcc85cc","user":{"login":"xliiv","id":298994,"avatar_url":"https://avatars.githubusercontent.com/u/298994?v=3","gravatar_id":"","url":"https://api.github.com/users/xliiv","html_url":"https://github.com/xliiv","followers_url":"https://api.github.com/users/xliiv/followers","following_url":"https://api.github.com/users/xliiv/following{/other_user}","gists_url":"https://api.github.com/users/xliiv/gists{/gist_id}","starred_url":"https://api.github.com/users/xliiv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xliiv/subscriptions","organizations_url":"https://api.github.com/users/xliiv/orgs","repos_url":"https://api.github.com/users/xliiv/repos","events_url":"https://api.github.com/users/xliiv/events{/privacy}","received_events_url":"https://api.github.com/users/xliiv/received_events","type":"User","site_admin":false},"repo":{"id":53501845,"name":"django-powerdns-dnssec","full_name":"xliiv/django-powerdns-dnssec","owner":{"login":"xliiv","id":298994,"avatar_url":"https://avatars.githubusercontent.com/u/298994?v=3","gravatar_id":"","url":"https://api.github.com/users/xliiv","html_url":"https://github.com/xliiv","followers_url":"https://api.github.com/users/xliiv/followers","following_url":"https://api.github.com/users/xliiv/following{/other_user}","gists_url":"https://api.github.com/users/xliiv/gists{/gist_id}","starred_url":"https://api.github.com/users/xliiv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xliiv/subscriptions","organizations_url":"https://api.github.com/users/xliiv/orgs","repos_url":"https://api.github.com/users/xliiv/repos","events_url":"https://api.github.com/users/xliiv/events{/privacy}","received_events_url":"https://api.github.com/users/xliiv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xliiv/django-powerdns-dnssec","description":"Django application managing PowerDNS database","fork":true,"url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec","forks_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/forks","keys_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/teams","hooks_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/hooks","issue_events_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/issues/events{/number}","events_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/events","assignees_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/assignees{/user}","branches_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/branches{/branch}","tags_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/tags","blobs_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/git/refs{/sha}","trees_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/statuses/{sha}","languages_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/languages","stargazers_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/stargazers","contributors_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/contributors","subscribers_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/subscribers","subscription_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/subscription","commits_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/commits{/sha}","git_commits_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/git/commits{/sha}","comments_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/comments{/number}","issue_comment_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/issues/comments{/number}","contents_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/contents/{+path}","compare_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/merges","archive_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/downloads","issues_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/issues{/number}","pulls_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/pulls{/number}","milestones_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/milestones{/number}","notifications_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/labels{/name}","releases_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/releases{/id}","deployments_url":"https://api.github.com/repos/xliiv/django-powerdns-dnssec/deployments","created_at":"2016-03-09T13:59:19Z","updated_at":"2016-03-09T13:59:20Z","pushed_at":"2016-07-22T07:50:11Z","git_url":"git://github.com/xliiv/django-powerdns-dnssec.git","ssh_url":"git@github.com:xliiv/django-powerdns-dnssec.git","clone_url":"https://github.com/xliiv/django-powerdns-dnssec.git","svn_url":"https://github.com/xliiv/django-powerdns-dnssec","homepage":"http://django-powerdns-dnssec.readthedocs.org","size":704,"stargazers_count":0,"watchers_count":0,"language":"Python","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":0,"default_branch":"develop"}},"base":{"label":"allegro:develop","ref":"develop","sha":"cd7f4273b7961361056eac865ed86d68243a04ab","user":{"login":"allegro","id":562236,"avatar_url":"https://avatars.githubusercontent.com/u/562236?v=3","gravatar_id":"","url":"https://api.github.com/users/allegro","html_url":"https://github.com/allegro","followers_url":"https://api.github.com/users/allegro/followers","following_url":"https://api.github.com/users/allegro/following{/other_user}","gists_url":"https://api.github.com/users/allegro/gists{/gist_id}","starred_url":"https://api.github.com/users/allegro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allegro/subscriptions","organizations_url":"https://api.github.com/users/allegro/orgs","repos_url":"https://api.github.com/users/allegro/repos","events_url":"https://api.github.com/users/allegro/events{/privacy}","received_events_url":"https://api.github.com/users/allegro/received_events","type":"Organization","site_admin":false},"repo":{"id":37307631,"name":"django-powerdns-dnssec","full_name":"allegro/django-powerdns-dnssec","owner":{"login":"allegro","id":562236,"avatar_url":"https://avatars.githubusercontent.com/u/562236?v=3","gravatar_id":"","url":"https://api.github.com/users/allegro","html_url":"https://github.com/allegro","followers_url":"https://api.github.com/users/allegro/followers","following_url":"https://api.github.com/users/allegro/following{/other_user}","gists_url":"https://api.github.com/users/allegro/gists{/gist_id}","starred_url":"https://api.github.com/users/allegro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allegro/subscriptions","organizations_url":"https://api.github.com/users/allegro/orgs","repos_url":"https://api.github.com/users/allegro/repos","events_url":"https://api.github.com/users/allegro/events{/privacy}","received_events_url":"https://api.github.com/users/allegro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/allegro/django-powerdns-dnssec","description":"Django application managing PowerDNS database","fork":false,"url":"https://api.github.com/repos/allegro/django-powerdns-dnssec","forks_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/forks","keys_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/teams","hooks_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/hooks","issue_events_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/issues/events{/number}","events_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/events","assignees_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/assignees{/user}","branches_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/branches{/branch}","tags_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/tags","blobs_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/git/refs{/sha}","trees_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/statuses/{sha}","languages_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/languages","stargazers_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/stargazers","contributors_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/contributors","subscribers_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/subscribers","subscription_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/subscription","commits_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/commits{/sha}","git_commits_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/git/commits{/sha}","comments_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/comments{/number}","issue_comment_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/issues/comments{/number}","contents_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/contents/{+path}","compare_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/merges","archive_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/downloads","issues_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/issues{/number}","pulls_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/pulls{/number}","milestones_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/milestones{/number}","notifications_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/labels{/name}","releases_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/releases{/id}","deployments_url":"https://api.github.com/repos/allegro/django-powerdns-dnssec/deployments","created_at":"2015-06-12T07:12:29Z","updated_at":"2016-07-08T07:12:54Z","pushed_at":"2016-07-22T07:50:11Z","git_url":"git://github.com/allegro/django-powerdns-dnssec.git","ssh_url":"git@github.com:allegro/django-powerdns-dnssec.git","clone_url":"https://github.com/allegro/django-powerdns-dnssec.git","svn_url":"https://github.com/allegro/django-powerdns-dnssec","homepage":"http://django-powerdns-dnssec.readthedocs.org","size":626,"stargazers_count":18,"watchers_count":18,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":10,"forks":7,"open_issues":10,"watchers":18,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/allegro/django-powerdns-dnssec/pulls/133"},"html":{"href":"https://github.com/allegro/django-powerdns-dnssec/pull/133"},"issue":{"href":"https://api.github.com/repos/allegro/django-powerdns-dnssec/issues/133"},"comments":{"href":"https://api.github.com/repos/allegro/django-powerdns-dnssec/issues/133/comments"},"review_comments":{"href":"https://api.github.com/repos/allegro/django-powerdns-dnssec/pulls/133/comments"},"review_comment":{"href":"https://api.github.com/repos/allegro/django-powerdns-dnssec/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/allegro/django-powerdns-dnssec/pulls/133/commits"},"statuses":{"href":"https://api.github.com/repos/allegro/django-powerdns-dnssec/statuses/55614e82cbcc859647bdac0818c8f8a71dcc85cc"}}}}
{"actor":{"display_login":"mkurek"}}