{"action":"created","comment":{"url":"https://api.github.com/repos/feisuzhu/thbattle/pulls/comments/38550222","id":38550222,"diff_hunk":"@@ -444,6 +445,7 @@ def process_action(self, action):\n             rst = action.succeeded\n         elif action.cancelled or not action.can_fire():\n             log.debug('action cancelled/invalid %s' % action.__class__.__name__)\n+            action.cancelled = True  # cancel action automatically when it is invalid","path":"src/game/game_common.py","position":14,"original_position":14,"commit_id":"d99d4830c6ac9ca32a2336c25b7702768c43e68b","original_commit_id":"d99d4830c6ac9ca32a2336c25b7702768c43e68b","user":{"login":"zhykzhykzhyk","id":3477952,"avatar_url":"https://avatars.githubusercontent.com/u/3477952?v=3","gravatar_id":"","url":"https://api.github.com/users/zhykzhykzhyk","html_url":"https://github.com/zhykzhykzhyk","followers_url":"https://api.github.com/users/zhykzhykzhyk/followers","following_url":"https://api.github.com/users/zhykzhykzhyk/following{/other_user}","gists_url":"https://api.github.com/users/zhykzhykzhyk/gists{/gist_id}","starred_url":"https://api.github.com/users/zhykzhykzhyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhykzhykzhyk/subscriptions","organizations_url":"https://api.github.com/users/zhykzhykzhyk/orgs","repos_url":"https://api.github.com/users/zhykzhykzhyk/repos","events_url":"https://api.github.com/users/zhykzhykzhyk/events{/privacy}","received_events_url":"https://api.github.com/users/zhykzhykzhyk/received_events","type":"User","site_admin":false},"body":"自动取消不合法的动作不行吗？","created_at":"2015-09-02T15:59:43Z","updated_at":"2015-09-02T15:59:43Z","html_url":"https://github.com/feisuzhu/thbattle/pull/121#discussion_r38550222","pull_request_url":"https://api.github.com/repos/feisuzhu/thbattle/pulls/121","_links":{"self":{"href":"https://api.github.com/repos/feisuzhu/thbattle/pulls/comments/38550222"},"html":{"href":"https://github.com/feisuzhu/thbattle/pull/121#discussion_r38550222"},"pull_request":{"href":"https://api.github.com/repos/feisuzhu/thbattle/pulls/121"}}},"pull_request":{"url":"https://api.github.com/repos/feisuzhu/thbattle/pulls/121","id":43963538,"html_url":"https://github.com/feisuzhu/thbattle/pull/121","diff_url":"https://github.com/feisuzhu/thbattle/pull/121.diff","patch_url":"https://github.com/feisuzhu/thbattle/pull/121.patch","issue_url":"https://api.github.com/repos/feisuzhu/thbattle/issues/121","number":121,"state":"open","locked":false,"title":"Kyouko","user":{"login":"zhykzhykzhyk","id":3477952,"avatar_url":"https://avatars.githubusercontent.com/u/3477952?v=3","gravatar_id":"","url":"https://api.github.com/users/zhykzhykzhyk","html_url":"https://github.com/zhykzhykzhyk","followers_url":"https://api.github.com/users/zhykzhykzhyk/followers","following_url":"https://api.github.com/users/zhykzhykzhyk/following{/other_user}","gists_url":"https://api.github.com/users/zhykzhykzhyk/gists{/gist_id}","starred_url":"https://api.github.com/users/zhykzhykzhyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhykzhykzhyk/subscriptions","organizations_url":"https://api.github.com/users/zhykzhykzhyk/orgs","repos_url":"https://api.github.com/users/zhykzhykzhyk/repos","events_url":"https://api.github.com/users/zhykzhykzhyk/events{/privacy}","received_events_url":"https://api.github.com/users/zhykzhykzhyk/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-02T08:00:05Z","updated_at":"2015-09-02T15:59:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab6b331a82563c31120dbc573f791c1796e95311","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/feisuzhu/thbattle/pulls/121/commits","review_comments_url":"https://api.github.com/repos/feisuzhu/thbattle/pulls/121/comments","review_comment_url":"https://api.github.com/repos/feisuzhu/thbattle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/feisuzhu/thbattle/issues/121/comments","statuses_url":"https://api.github.com/repos/feisuzhu/thbattle/statuses/d99d4830c6ac9ca32a2336c25b7702768c43e68b","head":{"label":"zhykzhykzhyk:kyouko","ref":"kyouko","sha":"d99d4830c6ac9ca32a2336c25b7702768c43e68b","user":{"login":"zhykzhykzhyk","id":3477952,"avatar_url":"https://avatars.githubusercontent.com/u/3477952?v=3","gravatar_id":"","url":"https://api.github.com/users/zhykzhykzhyk","html_url":"https://github.com/zhykzhykzhyk","followers_url":"https://api.github.com/users/zhykzhykzhyk/followers","following_url":"https://api.github.com/users/zhykzhykzhyk/following{/other_user}","gists_url":"https://api.github.com/users/zhykzhykzhyk/gists{/gist_id}","starred_url":"https://api.github.com/users/zhykzhykzhyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhykzhykzhyk/subscriptions","organizations_url":"https://api.github.com/users/zhykzhykzhyk/orgs","repos_url":"https://api.github.com/users/zhykzhykzhyk/repos","events_url":"https://api.github.com/users/zhykzhykzhyk/events{/privacy}","received_events_url":"https://api.github.com/users/zhykzhykzhyk/received_events","type":"User","site_admin":false},"repo":{"id":8233564,"name":"thbattle","full_name":"zhykzhykzhyk/thbattle","owner":{"login":"zhykzhykzhyk","id":3477952,"avatar_url":"https://avatars.githubusercontent.com/u/3477952?v=3","gravatar_id":"","url":"https://api.github.com/users/zhykzhykzhyk","html_url":"https://github.com/zhykzhykzhyk","followers_url":"https://api.github.com/users/zhykzhykzhyk/followers","following_url":"https://api.github.com/users/zhykzhykzhyk/following{/other_user}","gists_url":"https://api.github.com/users/zhykzhykzhyk/gists{/gist_id}","starred_url":"https://api.github.com/users/zhykzhykzhyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhykzhykzhyk/subscriptions","organizations_url":"https://api.github.com/users/zhykzhykzhyk/orgs","repos_url":"https://api.github.com/users/zhykzhykzhyk/repos","events_url":"https://api.github.com/users/zhykzhykzhyk/events{/privacy}","received_events_url":"https://api.github.com/users/zhykzhykzhyk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zhykzhykzhyk/thbattle","description":"A Sanguosha board game clone, based on Touhou Project","fork":true,"url":"https://api.github.com/repos/zhykzhykzhyk/thbattle","forks_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/forks","keys_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/teams","hooks_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/hooks","issue_events_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/issues/events{/number}","events_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/events","assignees_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/assignees{/user}","branches_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/branches{/branch}","tags_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/tags","blobs_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/git/refs{/sha}","trees_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/statuses/{sha}","languages_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/languages","stargazers_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/stargazers","contributors_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/contributors","subscribers_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/subscribers","subscription_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/subscription","commits_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/commits{/sha}","git_commits_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/git/commits{/sha}","comments_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/comments{/number}","issue_comment_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/issues/comments{/number}","contents_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/contents/{+path}","compare_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/merges","archive_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/downloads","issues_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/issues{/number}","pulls_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/pulls{/number}","milestones_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/milestones{/number}","notifications_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/labels{/name}","releases_url":"https://api.github.com/repos/zhykzhykzhyk/thbattle/releases{/id}","created_at":"2013-02-16T08:47:17Z","updated_at":"2015-08-27T07:23:24Z","pushed_at":"2015-09-02T15:34:29Z","git_url":"git://github.com/zhykzhykzhyk/thbattle.git","ssh_url":"git@github.com:zhykzhykzhyk/thbattle.git","clone_url":"https://github.com/zhykzhykzhyk/thbattle.git","svn_url":"https://github.com/zhykzhykzhyk/thbattle","homepage":"http://www.thbattle.net","size":102237,"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":"master"}},"base":{"label":"feisuzhu:vnext","ref":"vnext","sha":"d2e5dcd73dab2a06a56b24bb8e8f29838780b18b","user":{"login":"feisuzhu","id":857880,"avatar_url":"https://avatars.githubusercontent.com/u/857880?v=3","gravatar_id":"","url":"https://api.github.com/users/feisuzhu","html_url":"https://github.com/feisuzhu","followers_url":"https://api.github.com/users/feisuzhu/followers","following_url":"https://api.github.com/users/feisuzhu/following{/other_user}","gists_url":"https://api.github.com/users/feisuzhu/gists{/gist_id}","starred_url":"https://api.github.com/users/feisuzhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feisuzhu/subscriptions","organizations_url":"https://api.github.com/users/feisuzhu/orgs","repos_url":"https://api.github.com/users/feisuzhu/repos","events_url":"https://api.github.com/users/feisuzhu/events{/privacy}","received_events_url":"https://api.github.com/users/feisuzhu/received_events","type":"User","site_admin":false},"repo":{"id":2077532,"name":"thbattle","full_name":"feisuzhu/thbattle","owner":{"login":"feisuzhu","id":857880,"avatar_url":"https://avatars.githubusercontent.com/u/857880?v=3","gravatar_id":"","url":"https://api.github.com/users/feisuzhu","html_url":"https://github.com/feisuzhu","followers_url":"https://api.github.com/users/feisuzhu/followers","following_url":"https://api.github.com/users/feisuzhu/following{/other_user}","gists_url":"https://api.github.com/users/feisuzhu/gists{/gist_id}","starred_url":"https://api.github.com/users/feisuzhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feisuzhu/subscriptions","organizations_url":"https://api.github.com/users/feisuzhu/orgs","repos_url":"https://api.github.com/users/feisuzhu/repos","events_url":"https://api.github.com/users/feisuzhu/events{/privacy}","received_events_url":"https://api.github.com/users/feisuzhu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/feisuzhu/thbattle","description":"A Sanguosha board game clone, based on Touhou Project","fork":false,"url":"https://api.github.com/repos/feisuzhu/thbattle","forks_url":"https://api.github.com/repos/feisuzhu/thbattle/forks","keys_url":"https://api.github.com/repos/feisuzhu/thbattle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/feisuzhu/thbattle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/feisuzhu/thbattle/teams","hooks_url":"https://api.github.com/repos/feisuzhu/thbattle/hooks","issue_events_url":"https://api.github.com/repos/feisuzhu/thbattle/issues/events{/number}","events_url":"https://api.github.com/repos/feisuzhu/thbattle/events","assignees_url":"https://api.github.com/repos/feisuzhu/thbattle/assignees{/user}","branches_url":"https://api.github.com/repos/feisuzhu/thbattle/branches{/branch}","tags_url":"https://api.github.com/repos/feisuzhu/thbattle/tags","blobs_url":"https://api.github.com/repos/feisuzhu/thbattle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/feisuzhu/thbattle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/feisuzhu/thbattle/git/refs{/sha}","trees_url":"https://api.github.com/repos/feisuzhu/thbattle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/feisuzhu/thbattle/statuses/{sha}","languages_url":"https://api.github.com/repos/feisuzhu/thbattle/languages","stargazers_url":"https://api.github.com/repos/feisuzhu/thbattle/stargazers","contributors_url":"https://api.github.com/repos/feisuzhu/thbattle/contributors","subscribers_url":"https://api.github.com/repos/feisuzhu/thbattle/subscribers","subscription_url":"https://api.github.com/repos/feisuzhu/thbattle/subscription","commits_url":"https://api.github.com/repos/feisuzhu/thbattle/commits{/sha}","git_commits_url":"https://api.github.com/repos/feisuzhu/thbattle/git/commits{/sha}","comments_url":"https://api.github.com/repos/feisuzhu/thbattle/comments{/number}","issue_comment_url":"https://api.github.com/repos/feisuzhu/thbattle/issues/comments{/number}","contents_url":"https://api.github.com/repos/feisuzhu/thbattle/contents/{+path}","compare_url":"https://api.github.com/repos/feisuzhu/thbattle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/feisuzhu/thbattle/merges","archive_url":"https://api.github.com/repos/feisuzhu/thbattle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/feisuzhu/thbattle/downloads","issues_url":"https://api.github.com/repos/feisuzhu/thbattle/issues{/number}","pulls_url":"https://api.github.com/repos/feisuzhu/thbattle/pulls{/number}","milestones_url":"https://api.github.com/repos/feisuzhu/thbattle/milestones{/number}","notifications_url":"https://api.github.com/repos/feisuzhu/thbattle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/feisuzhu/thbattle/labels{/name}","releases_url":"https://api.github.com/repos/feisuzhu/thbattle/releases{/id}","created_at":"2011-07-20T11:04:30Z","updated_at":"2015-09-02T12:37:23Z","pushed_at":"2015-09-02T15:34:29Z","git_url":"git://github.com/feisuzhu/thbattle.git","ssh_url":"git@github.com:feisuzhu/thbattle.git","clone_url":"https://github.com/feisuzhu/thbattle.git","svn_url":"https://github.com/feisuzhu/thbattle","homepage":"http://www.thbattle.net","size":103698,"stargazers_count":157,"watchers_count":157,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":5,"forks":42,"open_issues":5,"watchers":157,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/feisuzhu/thbattle/pulls/121"},"html":{"href":"https://github.com/feisuzhu/thbattle/pull/121"},"issue":{"href":"https://api.github.com/repos/feisuzhu/thbattle/issues/121"},"comments":{"href":"https://api.github.com/repos/feisuzhu/thbattle/issues/121/comments"},"review_comments":{"href":"https://api.github.com/repos/feisuzhu/thbattle/pulls/121/comments"},"review_comment":{"href":"https://api.github.com/repos/feisuzhu/thbattle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/feisuzhu/thbattle/pulls/121/commits"},"statuses":{"href":"https://api.github.com/repos/feisuzhu/thbattle/statuses/d99d4830c6ac9ca32a2336c25b7702768c43e68b"}}}}