{"action":"created","comment":{"url":"https://api.github.com/repos/Spirals-Team/repairnator/pulls/comments/191246487","pull_request_review_id":123781743,"id":191246487,"diff_hunk":"@@ -404,4 +406,27 @@ public void removeNotificationFromTravisYML(File directory, AbstractStep step) {\n         }\n     }\n \n+    public void removeGhOauthFromCreatedFilesToPush(File directory, List<String> fileNames) {\n+        String ghOauthPattern = \"--ghOauth\\\\s+[\\\\w]+\";\n+        for (String fileName : fileNames) {\n+            File file = new File(directory, fileName);\n+\n+            if (!file.exists()) {\n+                getLogger().warn(\"The file \"+file.toPath()+\" does not exist.\");\n+            } else {\n+                Charset charset = StandardCharsets.UTF_8;\n+                try {\n+                    String content = new String(Files.readAllBytes(file.toPath()), charset);\n+                    String updatedContent = content.replaceAll(ghOauthPattern, \"\");","path":"repairnator/repairnator-pipeline/src/main/java/fr/inria/spirals/repairnator/process/git/GitHelper.java","position":null,"original_position":24,"commit_id":"5defdd56f4b69ab9e1f3d8614e31a0d98664c094","original_commit_id":"f6149416976bd8640b7d3a7c000e457c2becc19a","user":{"login":"fermadeiral","id":8786002,"avatar_url":"https://avatars0.githubusercontent.com/u/8786002?v=4","gravatar_id":"","url":"https://api.github.com/users/fermadeiral","html_url":"https://github.com/fermadeiral","followers_url":"https://api.github.com/users/fermadeiral/followers","following_url":"https://api.github.com/users/fermadeiral/following{/other_user}","gists_url":"https://api.github.com/users/fermadeiral/gists{/gist_id}","starred_url":"https://api.github.com/users/fermadeiral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fermadeiral/subscriptions","organizations_url":"https://api.github.com/users/fermadeiral/orgs","repos_url":"https://api.github.com/users/fermadeiral/repos","events_url":"https://api.github.com/users/fermadeiral/events{/privacy}","received_events_url":"https://api.github.com/users/fermadeiral/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2018-05-28T16:59:42Z","updated_at":"2018-05-28T16:59:43Z","html_url":"https://github.com/Spirals-Team/repairnator/pull/590#discussion_r191246487","pull_request_url":"https://api.github.com/repos/Spirals-Team/repairnator/pulls/590","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Spirals-Team/repairnator/pulls/comments/191246487"},"html":{"href":"https://github.com/Spirals-Team/repairnator/pull/590#discussion_r191246487"},"pull_request":{"href":"https://api.github.com/repos/Spirals-Team/repairnator/pulls/590"}},"in_reply_to_id":191245178},"pull_request":{"url":"https://api.github.com/repos/Spirals-Team/repairnator/pulls/590","id":190960449,"html_url":"https://github.com/Spirals-Team/repairnator/pull/590","diff_url":"https://github.com/Spirals-Team/repairnator/pull/590.diff","patch_url":"https://github.com/Spirals-Team/repairnator/pull/590.patch","issue_url":"https://api.github.com/repos/Spirals-Team/repairnator/issues/590","number":590,"state":"open","locked":false,"title":"Remove ghOauth from created files to push","user":{"login":"fermadeiral","id":8786002,"avatar_url":"https://avatars0.githubusercontent.com/u/8786002?v=4","gravatar_id":"","url":"https://api.github.com/users/fermadeiral","html_url":"https://github.com/fermadeiral","followers_url":"https://api.github.com/users/fermadeiral/followers","following_url":"https://api.github.com/users/fermadeiral/following{/other_user}","gists_url":"https://api.github.com/users/fermadeiral/gists{/gist_id}","starred_url":"https://api.github.com/users/fermadeiral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fermadeiral/subscriptions","organizations_url":"https://api.github.com/users/fermadeiral/orgs","repos_url":"https://api.github.com/users/fermadeiral/repos","events_url":"https://api.github.com/users/fermadeiral/events{/privacy}","received_events_url":"https://api.github.com/users/fermadeiral/received_events","type":"User","site_admin":false},"body":"This PR intends to fix issue #588.\r\n\r\nI run repairnator to REPAIR the build 384520172, which was the build that exposed the bug. The changes work, mainly because I didn't receive an email from GitHub after the branch was generated: https://github.com/fermadeiral/bears-collection-fp/tree/marlon123-spring-api-rest-curso-384520172-20180527-202310\r\n\r\nPS: the build is passing in https://github.com/fermadeiral/repairnator/pull/9","created_at":"2018-05-28T15:49:59Z","updated_at":"2018-05-28T16:59:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac624dcf3f7c6b79891f5b9290411e7f5e831735","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":899213659,"url":"https://api.github.com/repos/Spirals-Team/repairnator/labels/Ready","name":"Ready","color":"74ed7c","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Spirals-Team/repairnator/pulls/590/commits","review_comments_url":"https://api.github.com/repos/Spirals-Team/repairnator/pulls/590/comments","review_comment_url":"https://api.github.com/repos/Spirals-Team/repairnator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Spirals-Team/repairnator/issues/590/comments","statuses_url":"https://api.github.com/repos/Spirals-Team/repairnator/statuses/5defdd56f4b69ab9e1f3d8614e31a0d98664c094","head":{"label":"fermadeiral:remove-ghoauth-files","ref":"remove-ghoauth-files","sha":"5defdd56f4b69ab9e1f3d8614e31a0d98664c094","user":{"login":"fermadeiral","id":8786002,"avatar_url":"https://avatars0.githubusercontent.com/u/8786002?v=4","gravatar_id":"","url":"https://api.github.com/users/fermadeiral","html_url":"https://github.com/fermadeiral","followers_url":"https://api.github.com/users/fermadeiral/followers","following_url":"https://api.github.com/users/fermadeiral/following{/other_user}","gists_url":"https://api.github.com/users/fermadeiral/gists{/gist_id}","starred_url":"https://api.github.com/users/fermadeiral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fermadeiral/subscriptions","organizations_url":"https://api.github.com/users/fermadeiral/orgs","repos_url":"https://api.github.com/users/fermadeiral/repos","events_url":"https://api.github.com/users/fermadeiral/events{/privacy}","received_events_url":"https://api.github.com/users/fermadeiral/received_events","type":"User","site_admin":false},"repo":{"id":80627331,"name":"repairnator","full_name":"fermadeiral/repairnator","owner":{"login":"fermadeiral","id":8786002,"avatar_url":"https://avatars0.githubusercontent.com/u/8786002?v=4","gravatar_id":"","url":"https://api.github.com/users/fermadeiral","html_url":"https://github.com/fermadeiral","followers_url":"https://api.github.com/users/fermadeiral/followers","following_url":"https://api.github.com/users/fermadeiral/following{/other_user}","gists_url":"https://api.github.com/users/fermadeiral/gists{/gist_id}","starred_url":"https://api.github.com/users/fermadeiral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fermadeiral/subscriptions","organizations_url":"https://api.github.com/users/fermadeiral/orgs","repos_url":"https://api.github.com/users/fermadeiral/repos","events_url":"https://api.github.com/users/fermadeiral/events{/privacy}","received_events_url":"https://api.github.com/users/fermadeiral/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fermadeiral/repairnator","description":"Source code for the LibRepair InriaHub / ADT ","fork":true,"url":"https://api.github.com/repos/fermadeiral/repairnator","forks_url":"https://api.github.com/repos/fermadeiral/repairnator/forks","keys_url":"https://api.github.com/repos/fermadeiral/repairnator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fermadeiral/repairnator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fermadeiral/repairnator/teams","hooks_url":"https://api.github.com/repos/fermadeiral/repairnator/hooks","issue_events_url":"https://api.github.com/repos/fermadeiral/repairnator/issues/events{/number}","events_url":"https://api.github.com/repos/fermadeiral/repairnator/events","assignees_url":"https://api.github.com/repos/fermadeiral/repairnator/assignees{/user}","branches_url":"https://api.github.com/repos/fermadeiral/repairnator/branches{/branch}","tags_url":"https://api.github.com/repos/fermadeiral/repairnator/tags","blobs_url":"https://api.github.com/repos/fermadeiral/repairnator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fermadeiral/repairnator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fermadeiral/repairnator/git/refs{/sha}","trees_url":"https://api.github.com/repos/fermadeiral/repairnator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fermadeiral/repairnator/statuses/{sha}","languages_url":"https://api.github.com/repos/fermadeiral/repairnator/languages","stargazers_url":"https://api.github.com/repos/fermadeiral/repairnator/stargazers","contributors_url":"https://api.github.com/repos/fermadeiral/repairnator/contributors","subscribers_url":"https://api.github.com/repos/fermadeiral/repairnator/subscribers","subscription_url":"https://api.github.com/repos/fermadeiral/repairnator/subscription","commits_url":"https://api.github.com/repos/fermadeiral/repairnator/commits{/sha}","git_commits_url":"https://api.github.com/repos/fermadeiral/repairnator/git/commits{/sha}","comments_url":"https://api.github.com/repos/fermadeiral/repairnator/comments{/number}","issue_comment_url":"https://api.github.com/repos/fermadeiral/repairnator/issues/comments{/number}","contents_url":"https://api.github.com/repos/fermadeiral/repairnator/contents/{+path}","compare_url":"https://api.github.com/repos/fermadeiral/repairnator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fermadeiral/repairnator/merges","archive_url":"https://api.github.com/repos/fermadeiral/repairnator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fermadeiral/repairnator/downloads","issues_url":"https://api.github.com/repos/fermadeiral/repairnator/issues{/number}","pulls_url":"https://api.github.com/repos/fermadeiral/repairnator/pulls{/number}","milestones_url":"https://api.github.com/repos/fermadeiral/repairnator/milestones{/number}","notifications_url":"https://api.github.com/repos/fermadeiral/repairnator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fermadeiral/repairnator/labels{/name}","releases_url":"https://api.github.com/repos/fermadeiral/repairnator/releases{/id}","deployments_url":"https://api.github.com/repos/fermadeiral/repairnator/deployments","created_at":"2017-02-01T14:23:59Z","updated_at":"2018-05-23T13:55:30Z","pushed_at":"2018-05-28T16:58:44Z","git_url":"git://github.com/fermadeiral/repairnator.git","ssh_url":"git@github.com:fermadeiral/repairnator.git","clone_url":"https://github.com/fermadeiral/repairnator.git","svn_url":"https://github.com/fermadeiral/repairnator","homepage":null,"size":43604,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"Spirals-Team:master","ref":"master","sha":"e35d08fc93d9a9348c1e7e2b12c26a69abef3767","user":{"login":"Spirals-Team","id":9421796,"avatar_url":"https://avatars2.githubusercontent.com/u/9421796?v=4","gravatar_id":"","url":"https://api.github.com/users/Spirals-Team","html_url":"https://github.com/Spirals-Team","followers_url":"https://api.github.com/users/Spirals-Team/followers","following_url":"https://api.github.com/users/Spirals-Team/following{/other_user}","gists_url":"https://api.github.com/users/Spirals-Team/gists{/gist_id}","starred_url":"https://api.github.com/users/Spirals-Team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Spirals-Team/subscriptions","organizations_url":"https://api.github.com/users/Spirals-Team/orgs","repos_url":"https://api.github.com/users/Spirals-Team/repos","events_url":"https://api.github.com/users/Spirals-Team/events{/privacy}","received_events_url":"https://api.github.com/users/Spirals-Team/received_events","type":"Organization","site_admin":false},"repo":{"id":77066767,"name":"repairnator","full_name":"Spirals-Team/repairnator","owner":{"login":"Spirals-Team","id":9421796,"avatar_url":"https://avatars2.githubusercontent.com/u/9421796?v=4","gravatar_id":"","url":"https://api.github.com/users/Spirals-Team","html_url":"https://github.com/Spirals-Team","followers_url":"https://api.github.com/users/Spirals-Team/followers","following_url":"https://api.github.com/users/Spirals-Team/following{/other_user}","gists_url":"https://api.github.com/users/Spirals-Team/gists{/gist_id}","starred_url":"https://api.github.com/users/Spirals-Team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Spirals-Team/subscriptions","organizations_url":"https://api.github.com/users/Spirals-Team/orgs","repos_url":"https://api.github.com/users/Spirals-Team/repos","events_url":"https://api.github.com/users/Spirals-Team/events{/privacy}","received_events_url":"https://api.github.com/users/Spirals-Team/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Spirals-Team/repairnator","description":"a software development bot that automatically repairs build failures on Travis Continuous Integration ","fork":false,"url":"https://api.github.com/repos/Spirals-Team/repairnator","forks_url":"https://api.github.com/repos/Spirals-Team/repairnator/forks","keys_url":"https://api.github.com/repos/Spirals-Team/repairnator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Spirals-Team/repairnator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Spirals-Team/repairnator/teams","hooks_url":"https://api.github.com/repos/Spirals-Team/repairnator/hooks","issue_events_url":"https://api.github.com/repos/Spirals-Team/repairnator/issues/events{/number}","events_url":"https://api.github.com/repos/Spirals-Team/repairnator/events","assignees_url":"https://api.github.com/repos/Spirals-Team/repairnator/assignees{/user}","branches_url":"https://api.github.com/repos/Spirals-Team/repairnator/branches{/branch}","tags_url":"https://api.github.com/repos/Spirals-Team/repairnator/tags","blobs_url":"https://api.github.com/repos/Spirals-Team/repairnator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Spirals-Team/repairnator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Spirals-Team/repairnator/git/refs{/sha}","trees_url":"https://api.github.com/repos/Spirals-Team/repairnator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Spirals-Team/repairnator/statuses/{sha}","languages_url":"https://api.github.com/repos/Spirals-Team/repairnator/languages","stargazers_url":"https://api.github.com/repos/Spirals-Team/repairnator/stargazers","contributors_url":"https://api.github.com/repos/Spirals-Team/repairnator/contributors","subscribers_url":"https://api.github.com/repos/Spirals-Team/repairnator/subscribers","subscription_url":"https://api.github.com/repos/Spirals-Team/repairnator/subscription","commits_url":"https://api.github.com/repos/Spirals-Team/repairnator/commits{/sha}","git_commits_url":"https://api.github.com/repos/Spirals-Team/repairnator/git/commits{/sha}","comments_url":"https://api.github.com/repos/Spirals-Team/repairnator/comments{/number}","issue_comment_url":"https://api.github.com/repos/Spirals-Team/repairnator/issues/comments{/number}","contents_url":"https://api.github.com/repos/Spirals-Team/repairnator/contents/{+path}","compare_url":"https://api.github.com/repos/Spirals-Team/repairnator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Spirals-Team/repairnator/merges","archive_url":"https://api.github.com/repos/Spirals-Team/repairnator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Spirals-Team/repairnator/downloads","issues_url":"https://api.github.com/repos/Spirals-Team/repairnator/issues{/number}","pulls_url":"https://api.github.com/repos/Spirals-Team/repairnator/pulls{/number}","milestones_url":"https://api.github.com/repos/Spirals-Team/repairnator/milestones{/number}","notifications_url":"https://api.github.com/repos/Spirals-Team/repairnator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Spirals-Team/repairnator/labels{/name}","releases_url":"https://api.github.com/repos/Spirals-Team/repairnator/releases{/id}","deployments_url":"https://api.github.com/repos/Spirals-Team/repairnator/deployments","created_at":"2016-12-21T16:12:54Z","updated_at":"2018-05-25T14:40:31Z","pushed_at":"2018-05-28T16:58:45Z","git_url":"git://github.com/Spirals-Team/repairnator.git","ssh_url":"git@github.com:Spirals-Team/repairnator.git","clone_url":"https://github.com/Spirals-Team/repairnator.git","svn_url":"https://github.com/Spirals-Team/repairnator","homepage":"","size":43591,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":71,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":2,"open_issues":71,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Spirals-Team/repairnator/pulls/590"},"html":{"href":"https://github.com/Spirals-Team/repairnator/pull/590"},"issue":{"href":"https://api.github.com/repos/Spirals-Team/repairnator/issues/590"},"comments":{"href":"https://api.github.com/repos/Spirals-Team/repairnator/issues/590/comments"},"review_comments":{"href":"https://api.github.com/repos/Spirals-Team/repairnator/pulls/590/comments"},"review_comment":{"href":"https://api.github.com/repos/Spirals-Team/repairnator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Spirals-Team/repairnator/pulls/590/commits"},"statuses":{"href":"https://api.github.com/repos/Spirals-Team/repairnator/statuses/5defdd56f4b69ab9e1f3d8614e31a0d98664c094"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"fermadeiral"}}