{"action":"created","comment":{"url":"https://api.github.com/repos/coala/corobo/pulls/comments/181581302","pull_request_review_id":112236309,"id":181581302,"diff_hunk":"@@ -343,3 +344,110 @@ def test_invite_me(self):\n                               'Command \\\"hey\\\" / \\\"hey there\\\" not found.')\n         with self.assertRaises(queue.Empty):\n              testbot.pop_message()\n+\n+    def test_migrate_issue(self):\n+        plugins.labhub.GitHub = create_autospec(IGitt.GitHub.GitHub.GitHub)\n+        plugins.labhub.GitLab = create_autospec(IGitt.GitLab.GitLab.GitLab)\n+        labhub, testbot = plugin_testbot(plugins.labhub.LabHub, logging.ERROR)\n+        labhub.activate()\n+\n+        labhub.REPOS = {\n+            'a': self.mock_repo,\n+            'b': self.mock_repo\n+        }\n+\n+        mock_maint_team = create_autospec(github3.orgs.Team)\n+        mock_maint_team.is_member.return_value = False\n+\n+        labhub.TEAMS = {\n+                        'coala maintainers': mock_maint_team,","path":"tests/labhub_test.py","position":28,"original_position":28,"commit_id":"6b8f1540a101c8cd4f3399ea1bb4a116ad814739","original_commit_id":"6b8f1540a101c8cd4f3399ea1bb4a116ad814739","user":{"login":"jayvdb","id":15092,"avatar_url":"https://avatars1.githubusercontent.com/u/15092?v=4","gravatar_id":"","url":"https://api.github.com/users/jayvdb","html_url":"https://github.com/jayvdb","followers_url":"https://api.github.com/users/jayvdb/followers","following_url":"https://api.github.com/users/jayvdb/following{/other_user}","gists_url":"https://api.github.com/users/jayvdb/gists{/gist_id}","starred_url":"https://api.github.com/users/jayvdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayvdb/subscriptions","organizations_url":"https://api.github.com/users/jayvdb/orgs","repos_url":"https://api.github.com/users/jayvdb/repos","events_url":"https://api.github.com/users/jayvdb/events{/privacy}","received_events_url":"https://api.github.com/users/jayvdb/received_events","type":"User","site_admin":false},"body":"indent only 4 spaces","created_at":"2018-04-15T12:35:04Z","updated_at":"2018-04-15T12:36:47Z","html_url":"https://github.com/coala/corobo/pull/521#discussion_r181581302","pull_request_url":"https://api.github.com/repos/coala/corobo/pulls/521","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/coala/corobo/pulls/comments/181581302"},"html":{"href":"https://github.com/coala/corobo/pull/521#discussion_r181581302"},"pull_request":{"href":"https://api.github.com/repos/coala/corobo/pulls/521"}}},"pull_request":{"url":"https://api.github.com/repos/coala/corobo/pulls/521","id":180111817,"html_url":"https://github.com/coala/corobo/pull/521","diff_url":"https://github.com/coala/corobo/pull/521.diff","patch_url":"https://github.com/coala/corobo/pull/521.patch","issue_url":"https://api.github.com/repos/coala/corobo/issues/521","number":521,"state":"open","locked":false,"title":"labhub.py: add migrate_issue plugin","user":{"login":"random-access7","id":20523845,"avatar_url":"https://avatars3.githubusercontent.com/u/20523845?v=4","gravatar_id":"","url":"https://api.github.com/users/random-access7","html_url":"https://github.com/random-access7","followers_url":"https://api.github.com/users/random-access7/followers","following_url":"https://api.github.com/users/random-access7/following{/other_user}","gists_url":"https://api.github.com/users/random-access7/gists{/gist_id}","starred_url":"https://api.github.com/users/random-access7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/random-access7/subscriptions","organizations_url":"https://api.github.com/users/random-access7/orgs","repos_url":"https://api.github.com/users/random-access7/repos","events_url":"https://api.github.com/users/random-access7/events{/privacy}","received_events_url":"https://api.github.com/users/random-access7/received_events","type":"User","site_admin":false},"body":"Includes a migrate issue plugin that migrates an issue\r\nfrom one repo to another subject to conditions on the\r\ncommand like only maintainers can perform migration,\r\nissue must exist and issue must not be closed already.\r\n\r\nThe plugin copies the issue title, issue description but\r\nappends the URL of the old issue and handle of the user\r\nthat migrated the issue, to the description of the new\r\nissue. All comments are copied and written along with other\r\ndetails like author, date/time and URL of the old comment.\r\n\r\nAlso includes tests to check functionality.\r\n\r\nCloses https://github.com/coala/corobo/issues/518\r\n\r\n# Reviewers Checklist\r\n\r\n- [ ] Appropriate logging is done.\r\n- [ ] Appropriate error responses.\r\n- [ ] Handle every possible exception.\r\n- [ ] Make sure there is a docstring in the command functions. Hint: Lookout for\r\n  `botcmd` and `re_botcmd` decorators.\r\n- [ ] See that 100% coverage is there.\r\n- [ ] See to it that mocking is not done where it is not necessary.\r\n","created_at":"2018-04-07T15:56:04Z","updated_at":"2018-04-15T12:36:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8758badb45c8c76bf73b8af23073d6e0ce263b9f","assignee":{"login":"random-access7","id":20523845,"avatar_url":"https://avatars3.githubusercontent.com/u/20523845?v=4","gravatar_id":"","url":"https://api.github.com/users/random-access7","html_url":"https://github.com/random-access7","followers_url":"https://api.github.com/users/random-access7/followers","following_url":"https://api.github.com/users/random-access7/following{/other_user}","gists_url":"https://api.github.com/users/random-access7/gists{/gist_id}","starred_url":"https://api.github.com/users/random-access7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/random-access7/subscriptions","organizations_url":"https://api.github.com/users/random-access7/orgs","repos_url":"https://api.github.com/users/random-access7/repos","events_url":"https://api.github.com/users/random-access7/events{/privacy}","received_events_url":"https://api.github.com/users/random-access7/received_events","type":"User","site_admin":false},"assignees":[{"login":"random-access7","id":20523845,"avatar_url":"https://avatars3.githubusercontent.com/u/20523845?v=4","gravatar_id":"","url":"https://api.github.com/users/random-access7","html_url":"https://github.com/random-access7","followers_url":"https://api.github.com/users/random-access7/followers","following_url":"https://api.github.com/users/random-access7/following{/other_user}","gists_url":"https://api.github.com/users/random-access7/gists{/gist_id}","starred_url":"https://api.github.com/users/random-access7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/random-access7/subscriptions","organizations_url":"https://api.github.com/users/random-access7/orgs","repos_url":"https://api.github.com/users/random-access7/repos","events_url":"https://api.github.com/users/random-access7/events{/privacy}","received_events_url":"https://api.github.com/users/random-access7/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":618412585,"url":"https://api.github.com/repos/coala/corobo/labels/cool%20and%20awesome","name":"cool and awesome","color":"5319e7","default":false},{"id":601357671,"url":"https://api.github.com/repos/coala/corobo/labels/difficulty/medium","name":"difficulty/medium","color":"0052cc","default":false},{"id":622718451,"url":"https://api.github.com/repos/coala/corobo/labels/process/pending%20review","name":"process/pending review","color":"bfe5bf","default":false},{"id":624237024,"url":"https://api.github.com/repos/coala/corobo/labels/size/S","name":"size/S","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/coala/corobo/pulls/521/commits","review_comments_url":"https://api.github.com/repos/coala/corobo/pulls/521/comments","review_comment_url":"https://api.github.com/repos/coala/corobo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coala/corobo/issues/521/comments","statuses_url":"https://api.github.com/repos/coala/corobo/statuses/6b8f1540a101c8cd4f3399ea1bb4a116ad814739","head":{"label":"random-access7:master","ref":"master","sha":"6b8f1540a101c8cd4f3399ea1bb4a116ad814739","user":{"login":"random-access7","id":20523845,"avatar_url":"https://avatars3.githubusercontent.com/u/20523845?v=4","gravatar_id":"","url":"https://api.github.com/users/random-access7","html_url":"https://github.com/random-access7","followers_url":"https://api.github.com/users/random-access7/followers","following_url":"https://api.github.com/users/random-access7/following{/other_user}","gists_url":"https://api.github.com/users/random-access7/gists{/gist_id}","starred_url":"https://api.github.com/users/random-access7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/random-access7/subscriptions","organizations_url":"https://api.github.com/users/random-access7/orgs","repos_url":"https://api.github.com/users/random-access7/repos","events_url":"https://api.github.com/users/random-access7/events{/privacy}","received_events_url":"https://api.github.com/users/random-access7/received_events","type":"User","site_admin":false},"repo":{"id":122633144,"name":"corobo","full_name":"random-access7/corobo","owner":{"login":"random-access7","id":20523845,"avatar_url":"https://avatars3.githubusercontent.com/u/20523845?v=4","gravatar_id":"","url":"https://api.github.com/users/random-access7","html_url":"https://github.com/random-access7","followers_url":"https://api.github.com/users/random-access7/followers","following_url":"https://api.github.com/users/random-access7/following{/other_user}","gists_url":"https://api.github.com/users/random-access7/gists{/gist_id}","starred_url":"https://api.github.com/users/random-access7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/random-access7/subscriptions","organizations_url":"https://api.github.com/users/random-access7/orgs","repos_url":"https://api.github.com/users/random-access7/repos","events_url":"https://api.github.com/users/random-access7/events{/privacy}","received_events_url":"https://api.github.com/users/random-access7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/random-access7/corobo","description":"A bot to help newcomers onboard OS projects! It's awesome!","fork":true,"url":"https://api.github.com/repos/random-access7/corobo","forks_url":"https://api.github.com/repos/random-access7/corobo/forks","keys_url":"https://api.github.com/repos/random-access7/corobo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/random-access7/corobo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/random-access7/corobo/teams","hooks_url":"https://api.github.com/repos/random-access7/corobo/hooks","issue_events_url":"https://api.github.com/repos/random-access7/corobo/issues/events{/number}","events_url":"https://api.github.com/repos/random-access7/corobo/events","assignees_url":"https://api.github.com/repos/random-access7/corobo/assignees{/user}","branches_url":"https://api.github.com/repos/random-access7/corobo/branches{/branch}","tags_url":"https://api.github.com/repos/random-access7/corobo/tags","blobs_url":"https://api.github.com/repos/random-access7/corobo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/random-access7/corobo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/random-access7/corobo/git/refs{/sha}","trees_url":"https://api.github.com/repos/random-access7/corobo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/random-access7/corobo/statuses/{sha}","languages_url":"https://api.github.com/repos/random-access7/corobo/languages","stargazers_url":"https://api.github.com/repos/random-access7/corobo/stargazers","contributors_url":"https://api.github.com/repos/random-access7/corobo/contributors","subscribers_url":"https://api.github.com/repos/random-access7/corobo/subscribers","subscription_url":"https://api.github.com/repos/random-access7/corobo/subscription","commits_url":"https://api.github.com/repos/random-access7/corobo/commits{/sha}","git_commits_url":"https://api.github.com/repos/random-access7/corobo/git/commits{/sha}","comments_url":"https://api.github.com/repos/random-access7/corobo/comments{/number}","issue_comment_url":"https://api.github.com/repos/random-access7/corobo/issues/comments{/number}","contents_url":"https://api.github.com/repos/random-access7/corobo/contents/{+path}","compare_url":"https://api.github.com/repos/random-access7/corobo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/random-access7/corobo/merges","archive_url":"https://api.github.com/repos/random-access7/corobo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/random-access7/corobo/downloads","issues_url":"https://api.github.com/repos/random-access7/corobo/issues{/number}","pulls_url":"https://api.github.com/repos/random-access7/corobo/pulls{/number}","milestones_url":"https://api.github.com/repos/random-access7/corobo/milestones{/number}","notifications_url":"https://api.github.com/repos/random-access7/corobo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/random-access7/corobo/labels{/name}","releases_url":"https://api.github.com/repos/random-access7/corobo/releases{/id}","deployments_url":"https://api.github.com/repos/random-access7/corobo/deployments","created_at":"2018-02-23T14:42:15Z","updated_at":"2018-04-13T15:25:46Z","pushed_at":"2018-04-13T15:25:44Z","git_url":"git://github.com/random-access7/corobo.git","ssh_url":"git@github.com:random-access7/corobo.git","clone_url":"https://github.com/random-access7/corobo.git","svn_url":"https://github.com/random-access7/corobo","homepage":"","size":334,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"coala:master","ref":"master","sha":"583785c7c710bff930cb295c44da5321c4a90e17","user":{"login":"coala","id":10620750,"avatar_url":"https://avatars3.githubusercontent.com/u/10620750?v=4","gravatar_id":"","url":"https://api.github.com/users/coala","html_url":"https://github.com/coala","followers_url":"https://api.github.com/users/coala/followers","following_url":"https://api.github.com/users/coala/following{/other_user}","gists_url":"https://api.github.com/users/coala/gists{/gist_id}","starred_url":"https://api.github.com/users/coala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala/subscriptions","organizations_url":"https://api.github.com/users/coala/orgs","repos_url":"https://api.github.com/users/coala/repos","events_url":"https://api.github.com/users/coala/events{/privacy}","received_events_url":"https://api.github.com/users/coala/received_events","type":"Organization","site_admin":false},"repo":{"id":90716307,"name":"corobo","full_name":"coala/corobo","owner":{"login":"coala","id":10620750,"avatar_url":"https://avatars3.githubusercontent.com/u/10620750?v=4","gravatar_id":"","url":"https://api.github.com/users/coala","html_url":"https://github.com/coala","followers_url":"https://api.github.com/users/coala/followers","following_url":"https://api.github.com/users/coala/following{/other_user}","gists_url":"https://api.github.com/users/coala/gists{/gist_id}","starred_url":"https://api.github.com/users/coala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala/subscriptions","organizations_url":"https://api.github.com/users/coala/orgs","repos_url":"https://api.github.com/users/coala/repos","events_url":"https://api.github.com/users/coala/events{/privacy}","received_events_url":"https://api.github.com/users/coala/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coala/corobo","description":"A bot to help newcomers onboard OS projects! It's awesome!","fork":false,"url":"https://api.github.com/repos/coala/corobo","forks_url":"https://api.github.com/repos/coala/corobo/forks","keys_url":"https://api.github.com/repos/coala/corobo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coala/corobo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coala/corobo/teams","hooks_url":"https://api.github.com/repos/coala/corobo/hooks","issue_events_url":"https://api.github.com/repos/coala/corobo/issues/events{/number}","events_url":"https://api.github.com/repos/coala/corobo/events","assignees_url":"https://api.github.com/repos/coala/corobo/assignees{/user}","branches_url":"https://api.github.com/repos/coala/corobo/branches{/branch}","tags_url":"https://api.github.com/repos/coala/corobo/tags","blobs_url":"https://api.github.com/repos/coala/corobo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coala/corobo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coala/corobo/git/refs{/sha}","trees_url":"https://api.github.com/repos/coala/corobo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coala/corobo/statuses/{sha}","languages_url":"https://api.github.com/repos/coala/corobo/languages","stargazers_url":"https://api.github.com/repos/coala/corobo/stargazers","contributors_url":"https://api.github.com/repos/coala/corobo/contributors","subscribers_url":"https://api.github.com/repos/coala/corobo/subscribers","subscription_url":"https://api.github.com/repos/coala/corobo/subscription","commits_url":"https://api.github.com/repos/coala/corobo/commits{/sha}","git_commits_url":"https://api.github.com/repos/coala/corobo/git/commits{/sha}","comments_url":"https://api.github.com/repos/coala/corobo/comments{/number}","issue_comment_url":"https://api.github.com/repos/coala/corobo/issues/comments{/number}","contents_url":"https://api.github.com/repos/coala/corobo/contents/{+path}","compare_url":"https://api.github.com/repos/coala/corobo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coala/corobo/merges","archive_url":"https://api.github.com/repos/coala/corobo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coala/corobo/downloads","issues_url":"https://api.github.com/repos/coala/corobo/issues{/number}","pulls_url":"https://api.github.com/repos/coala/corobo/pulls{/number}","milestones_url":"https://api.github.com/repos/coala/corobo/milestones{/number}","notifications_url":"https://api.github.com/repos/coala/corobo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coala/corobo/labels{/name}","releases_url":"https://api.github.com/repos/coala/corobo/releases{/id}","deployments_url":"https://api.github.com/repos/coala/corobo/deployments","created_at":"2017-05-09T07:33:45Z","updated_at":"2018-04-13T18:03:27Z","pushed_at":"2018-04-15T07:50:37Z","git_url":"git://github.com/coala/corobo.git","ssh_url":"git@github.com:coala/corobo.git","clone_url":"https://github.com/coala/corobo.git","svn_url":"https://github.com/coala/corobo","homepage":"","size":320,"stargazers_count":44,"watchers_count":44,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":66,"mirror_url":null,"archived":false,"open_issues_count":141,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":66,"open_issues":141,"watchers":44,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coala/corobo/pulls/521"},"html":{"href":"https://github.com/coala/corobo/pull/521"},"issue":{"href":"https://api.github.com/repos/coala/corobo/issues/521"},"comments":{"href":"https://api.github.com/repos/coala/corobo/issues/521/comments"},"review_comments":{"href":"https://api.github.com/repos/coala/corobo/pulls/521/comments"},"review_comment":{"href":"https://api.github.com/repos/coala/corobo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coala/corobo/pulls/521/commits"},"statuses":{"href":"https://api.github.com/repos/coala/corobo/statuses/6b8f1540a101c8cd4f3399ea1bb4a116ad814739"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jayvdb"}}