{"action":"created","comment":{"url":"https://api.github.com/repos/uberfire/uberfire/pulls/comments/74120458","id":74120458,"diff_hunk":"@@ -0,0 +1,290 @@\n+/*\n+ * Copyright 2016 Red Hat, Inc. and/or its affiliates.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *       http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package org.uberfire.java.nio.fs.jgit.util.commands;\n+\n+import java.io.IOException;\n+import java.text.MessageFormat;\n+import java.util.HashMap;\n+import java.util.Map;\n+import java.util.Optional;\n+\n+import org.eclipse.jgit.api.Git;\n+import org.eclipse.jgit.api.errors.JGitInternalException;\n+import org.eclipse.jgit.dircache.DirCache;\n+import org.eclipse.jgit.internal.JGitText;\n+import org.eclipse.jgit.lib.CommitBuilder;\n+import org.eclipse.jgit.lib.Constants;\n+import org.eclipse.jgit.lib.ObjectId;\n+import org.eclipse.jgit.lib.ObjectInserter;\n+import org.eclipse.jgit.lib.PersonIdent;\n+import org.eclipse.jgit.lib.Ref;\n+import org.eclipse.jgit.lib.RefUpdate;\n+import org.eclipse.jgit.lib.Repository;\n+import org.eclipse.jgit.revwalk.RevCommit;\n+import org.eclipse.jgit.revwalk.RevSort;\n+import org.eclipse.jgit.revwalk.RevTree;\n+import org.eclipse.jgit.revwalk.RevWalk;\n+import org.eclipse.jgit.treewalk.TreeWalk;\n+import org.uberfire.java.nio.fs.jgit.util.JGitUtil;\n+import org.uberfire.java.nio.fs.jgit.util.exceptions.ConcurrentRefUpdateException;\n+import org.uberfire.java.nio.fs.jgit.util.exceptions.GitException;\n+\n+import static org.eclipse.jgit.lib.Constants.*;\n+\n+/**\n+ * Implements the Git Squash command. It needs the repository were he is going to make the squash,\n+ * the squash commit message, and the start commit, to know from where he hast to squash.\n+ * It return an Empty Optional because is not necessary to return anything.\n+ * It throws a {@link GitException} if something bad happens.\n+ */\n+public class Squash extends GitCommand {\n+\n+    private final String branchUpdateRef;\n+    private Repository repo;\n+    private String squashedCommitMessage;\n+    private String startCommitString;\n+\n+    public Squash( final Repository repo,\n+                   final String branchUpdateRef,\n+                   final String startCommitString,\n+                   final String squashedCommitMessage\n+\n+    ) {\n+        this.repo = repo;\n+        this.squashedCommitMessage = squashedCommitMessage;\n+        this.branchUpdateRef = branchUpdateRef;\n+        this.startCommitString = startCommitString;\n+    }\n+\n+    public Optional<Void> execute() {\n+\n+        this.isBare( repo );\n+\n+        final Git git = new Git( repo );\n+\n+        ObjectId startCommitObjectId = this.getStartCommit( git, startCommitString );\n+\n+        RevWalk revWalk = new RevWalk( repo );\n+        RevCommit startCommit = getRevCommit( startCommitObjectId, revWalk );\n+        RevCommit parent = startCommit;\n+        if ( startCommit.getParentCount() > 0 ) {\n+            parent = getRevCommit( startCommitObjectId, revWalk ).getParent( 0 );\n+        }\n+\n+        Ref head = this.getHead( repo );\n+        this.markStart( revWalk, parent, head );\n+\n+        revWalk.sort( RevSort.REVERSE );\n+\n+        PersonIdent commitAuthor = null;\n+\n+        Map<String, ObjectId> content = new HashMap<String, ObjectId>();\n+        for ( RevCommit commit : revWalk ) {\n+            commitAuthor = commit.getAuthorIdent();\n+            content = collectPathAndObjectIdFromTree( this.repo, revWalk, commit );\n+        }\n+\n+        revWalk.dispose();\n+\n+        final ObjectInserter odi = repo.newObjectInserter();\n+\n+        final ObjectId indexTreeId = createTemporaryIndex( git, content, odi );\n+\n+        final CommitBuilder commit = createCommit( parent, commitAuthor, indexTreeId, this.squashedCommitMessage );\n+\n+        final ObjectId commitId = insertCommitIntoRepositoryAndFlush( odi, commit );\n+\n+        updateReferenceAndReleaseRevisionWalk( git, revWalk, commitId );\n+\n+        return Optional.empty();\n+    }\n+\n+    /**\n+     * Create temporary index for commit content\n+     * @param git the git repository\n+     * @param content the content for the temporary index\n+     * @param odi the object inserter\n+     * @return\n+     * @throws {@link GitException} he cannot create temporary Index\n+     */\n+    private ObjectId createTemporaryIndex( Git git,\n+                                           Map<String, ObjectId> content,\n+                                           ObjectInserter odi ) {\n+        try {\n+            DirCache index = JGitUtil.createTemporaryIndexForContent( git, content );\n+            return index.writeTree( odi );\n+        } catch ( IOException e ) {\n+            String message = \"Cannot create temporary index form content\";\n+            throw new GitException( message, e );\n+        }\n+    }\n+\n+    /**\n+     * Update the reference of the old commit with the new squashed commits.\n+     * @param git The git Respository\n+     * @param revWalk the object that walks into the commit graph.\n+     * @param commitId the Commit Id that contains the reference.\n+     * @throws {@link ConcurrentRefUpdateException} if cannot lock head\n+     * @throws {@link JGitInternalException} if updating ref failed\n+     * @throws {@link IOException}\n+     */\n+    private void updateReferenceAndReleaseRevisionWalk( Git git,\n+                                                        RevWalk revWalk,\n+                                                        ObjectId commitId ) {\n+        try {\n+            final RevCommit revCommit = getRevCommit( commitId, revWalk );\n+            final RefUpdate ru = git.getRepository().updateRef( getBranchUpdateRef() );\n+            ru.setExpectedOldObjectId( repo.resolve( HEAD ) );\n+            ru.setNewObjectId( commitId );\n+            ru.setRefLogMessage( \"commit: \" + revCommit.getShortMessage(), false );\n+            final RefUpdate.Result rc = ru.forceUpdate();\n+            switch ( rc ) {\n+                case NEW:\n+                case FORCED:\n+                case FAST_FORWARD:\n+                    break;\n+                case REJECTED:\n+                case LOCK_FAILURE:\n+                    throw new ConcurrentRefUpdateException( JGitText.get().couldNotLockHEAD, ru.getRef(), rc );\n+                default:\n+                    throw new JGitInternalException( MessageFormat.format( JGitText.get().updatingRefFailed, Constants.HEAD, commitId.toString(), rc ) );\n+            }\n+\n+        } catch ( IOException e ) {\n+            String message = \"Cannot update commit reference\";\n+            throw new GitException( message, e );\n+        } finally {\n+            revWalk.close();\n+        }\n+    }\n+\n+    private String getBranchUpdateRef() {\n+        return this.branchUpdateRef;\n+    }\n+\n+    /**\n+     * Collect all paths and object IDs from Git Tree\n+     * @param repo the repository\n+     * @param revWalk the object that walks into the commit graph.\n+     * @param commit the commit\n+     * @return a Map where the key is the path and the values is the object id\n+     * @throws {@link GitException} if something wrong happens\n+     */\n+    private Map<String, ObjectId> collectPathAndObjectIdFromTree( Repository repo,\n+                                                                  RevWalk revWalk,\n+                                                                  RevCommit commit ) {\n+\n+        try {\n+            Map<String, ObjectId> content = new HashMap<String, ObjectId>();\n+\n+            RevTree tree = this.getRevTree( revWalk, commit );\n+            TreeWalk treeWalk = new TreeWalk( repo );\n+            treeWalk.addTree( tree );\n+            treeWalk.setRecursive( false );\n+\n+            while ( treeWalk.next() ) {\n+                if ( treeWalk.isSubtree() ) {\n+                    treeWalk.enterSubtree();\n+                } else {\n+                    ObjectId objectId = treeWalk.getObjectId( 0 );\n+                    content.put( treeWalk.getPathString(), objectId );\n+                }\n+            }\n+\n+            return content;\n+        } catch ( IOException e ) {\n+            String message = \"Impossble to collect path and objectId from Tree\";","path":"uberfire-nio2-backport/uberfire-nio2-impls/uberfire-nio2-jgit/src/main/java/org/uberfire/java/nio/fs/jgit/util/commands/Squash.java","position":210,"original_position":210,"commit_id":"aefa37c9ed88d8b41123424c89dc35165d9c24aa","original_commit_id":"aefa37c9ed88d8b41123424c89dc35165d9c24aa","user":{"login":"ederign","id":531351,"avatar_url":"https://avatars.githubusercontent.com/u/531351?v=3","gravatar_id":"","url":"https://api.github.com/users/ederign","html_url":"https://github.com/ederign","followers_url":"https://api.github.com/users/ederign/followers","following_url":"https://api.github.com/users/ederign/following{/other_user}","gists_url":"https://api.github.com/users/ederign/gists{/gist_id}","starred_url":"https://api.github.com/users/ederign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ederign/subscriptions","organizations_url":"https://api.github.com/users/ederign/orgs","repos_url":"https://api.github.com/users/ederign/repos","events_url":"https://api.github.com/users/ederign/events{/privacy}","received_events_url":"https://api.github.com/users/ederign/received_events","type":"User","site_admin":false},"body":"typo.","created_at":"2016-08-09T18:45:21Z","updated_at":"2016-08-09T18:45:21Z","html_url":"https://github.com/uberfire/uberfire/pull/462#discussion_r74120458","pull_request_url":"https://api.github.com/repos/uberfire/uberfire/pulls/462","_links":{"self":{"href":"https://api.github.com/repos/uberfire/uberfire/pulls/comments/74120458"},"html":{"href":"https://github.com/uberfire/uberfire/pull/462#discussion_r74120458"},"pull_request":{"href":"https://api.github.com/repos/uberfire/uberfire/pulls/462"}}},"pull_request":{"url":"https://api.github.com/repos/uberfire/uberfire/pulls/462","id":80623270,"html_url":"https://github.com/uberfire/uberfire/pull/462","diff_url":"https://github.com/uberfire/uberfire/pull/462.diff","patch_url":"https://github.com/uberfire/uberfire/pull/462.patch","issue_url":"https://api.github.com/repos/uberfire/uberfire/issues/462","number":462,"state":"open","locked":false,"title":"Git Squash Command ","user":{"login":"adrielparedes","id":471656,"avatar_url":"https://avatars.githubusercontent.com/u/471656?v=3","gravatar_id":"","url":"https://api.github.com/users/adrielparedes","html_url":"https://github.com/adrielparedes","followers_url":"https://api.github.com/users/adrielparedes/followers","following_url":"https://api.github.com/users/adrielparedes/following{/other_user}","gists_url":"https://api.github.com/users/adrielparedes/gists{/gist_id}","starred_url":"https://api.github.com/users/adrielparedes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrielparedes/subscriptions","organizations_url":"https://api.github.com/users/adrielparedes/orgs","repos_url":"https://api.github.com/users/adrielparedes/repos","events_url":"https://api.github.com/users/adrielparedes/events{/privacy}","received_events_url":"https://api.github.com/users/adrielparedes/received_events","type":"User","site_admin":false},"body":"Squash command added to JGit repository. Also added to the JGitFileSystemProvider in the setAttribute method.\r\n\r\nGitCommand added to implement git commands based on _command pattern_.\r\n","created_at":"2016-08-09T13:48:19Z","updated_at":"2016-08-09T18:45:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ca557812e971257d9ba1692206c897ced54f6a9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/uberfire/uberfire/pulls/462/commits","review_comments_url":"https://api.github.com/repos/uberfire/uberfire/pulls/462/comments","review_comment_url":"https://api.github.com/repos/uberfire/uberfire/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uberfire/uberfire/issues/462/comments","statuses_url":"https://api.github.com/repos/uberfire/uberfire/statuses/aefa37c9ed88d8b41123424c89dc35165d9c24aa","head":{"label":"adrielparedes:feature/squash","ref":"feature/squash","sha":"aefa37c9ed88d8b41123424c89dc35165d9c24aa","user":{"login":"adrielparedes","id":471656,"avatar_url":"https://avatars.githubusercontent.com/u/471656?v=3","gravatar_id":"","url":"https://api.github.com/users/adrielparedes","html_url":"https://github.com/adrielparedes","followers_url":"https://api.github.com/users/adrielparedes/followers","following_url":"https://api.github.com/users/adrielparedes/following{/other_user}","gists_url":"https://api.github.com/users/adrielparedes/gists{/gist_id}","starred_url":"https://api.github.com/users/adrielparedes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrielparedes/subscriptions","organizations_url":"https://api.github.com/users/adrielparedes/orgs","repos_url":"https://api.github.com/users/adrielparedes/repos","events_url":"https://api.github.com/users/adrielparedes/events{/privacy}","received_events_url":"https://api.github.com/users/adrielparedes/received_events","type":"User","site_admin":false},"repo":{"id":63978192,"name":"uberfire","full_name":"adrielparedes/uberfire","owner":{"login":"adrielparedes","id":471656,"avatar_url":"https://avatars.githubusercontent.com/u/471656?v=3","gravatar_id":"","url":"https://api.github.com/users/adrielparedes","html_url":"https://github.com/adrielparedes","followers_url":"https://api.github.com/users/adrielparedes/followers","following_url":"https://api.github.com/users/adrielparedes/following{/other_user}","gists_url":"https://api.github.com/users/adrielparedes/gists{/gist_id}","starred_url":"https://api.github.com/users/adrielparedes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrielparedes/subscriptions","organizations_url":"https://api.github.com/users/adrielparedes/orgs","repos_url":"https://api.github.com/users/adrielparedes/repos","events_url":"https://api.github.com/users/adrielparedes/events{/privacy}","received_events_url":"https://api.github.com/users/adrielparedes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adrielparedes/uberfire","description":"UberFire Framework","fork":true,"url":"https://api.github.com/repos/adrielparedes/uberfire","forks_url":"https://api.github.com/repos/adrielparedes/uberfire/forks","keys_url":"https://api.github.com/repos/adrielparedes/uberfire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adrielparedes/uberfire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adrielparedes/uberfire/teams","hooks_url":"https://api.github.com/repos/adrielparedes/uberfire/hooks","issue_events_url":"https://api.github.com/repos/adrielparedes/uberfire/issues/events{/number}","events_url":"https://api.github.com/repos/adrielparedes/uberfire/events","assignees_url":"https://api.github.com/repos/adrielparedes/uberfire/assignees{/user}","branches_url":"https://api.github.com/repos/adrielparedes/uberfire/branches{/branch}","tags_url":"https://api.github.com/repos/adrielparedes/uberfire/tags","blobs_url":"https://api.github.com/repos/adrielparedes/uberfire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adrielparedes/uberfire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adrielparedes/uberfire/git/refs{/sha}","trees_url":"https://api.github.com/repos/adrielparedes/uberfire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adrielparedes/uberfire/statuses/{sha}","languages_url":"https://api.github.com/repos/adrielparedes/uberfire/languages","stargazers_url":"https://api.github.com/repos/adrielparedes/uberfire/stargazers","contributors_url":"https://api.github.com/repos/adrielparedes/uberfire/contributors","subscribers_url":"https://api.github.com/repos/adrielparedes/uberfire/subscribers","subscription_url":"https://api.github.com/repos/adrielparedes/uberfire/subscription","commits_url":"https://api.github.com/repos/adrielparedes/uberfire/commits{/sha}","git_commits_url":"https://api.github.com/repos/adrielparedes/uberfire/git/commits{/sha}","comments_url":"https://api.github.com/repos/adrielparedes/uberfire/comments{/number}","issue_comment_url":"https://api.github.com/repos/adrielparedes/uberfire/issues/comments{/number}","contents_url":"https://api.github.com/repos/adrielparedes/uberfire/contents/{+path}","compare_url":"https://api.github.com/repos/adrielparedes/uberfire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adrielparedes/uberfire/merges","archive_url":"https://api.github.com/repos/adrielparedes/uberfire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adrielparedes/uberfire/downloads","issues_url":"https://api.github.com/repos/adrielparedes/uberfire/issues{/number}","pulls_url":"https://api.github.com/repos/adrielparedes/uberfire/pulls{/number}","milestones_url":"https://api.github.com/repos/adrielparedes/uberfire/milestones{/number}","notifications_url":"https://api.github.com/repos/adrielparedes/uberfire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adrielparedes/uberfire/labels{/name}","releases_url":"https://api.github.com/repos/adrielparedes/uberfire/releases{/id}","deployments_url":"https://api.github.com/repos/adrielparedes/uberfire/deployments","created_at":"2016-07-22T19:28:36Z","updated_at":"2016-07-22T19:28:47Z","pushed_at":"2016-08-09T18:07:52Z","git_url":"git://github.com/adrielparedes/uberfire.git","ssh_url":"git@github.com:adrielparedes/uberfire.git","clone_url":"https://github.com/adrielparedes/uberfire.git","svn_url":"https://github.com/adrielparedes/uberfire","homepage":"http://www.uberfireframework.org","size":35132,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"uberfire:master","ref":"master","sha":"d5ea34975d67b2e3e52f28af8e6875326c79aa8a","user":{"login":"uberfire","id":5167699,"avatar_url":"https://avatars.githubusercontent.com/u/5167699?v=3","gravatar_id":"","url":"https://api.github.com/users/uberfire","html_url":"https://github.com/uberfire","followers_url":"https://api.github.com/users/uberfire/followers","following_url":"https://api.github.com/users/uberfire/following{/other_user}","gists_url":"https://api.github.com/users/uberfire/gists{/gist_id}","starred_url":"https://api.github.com/users/uberfire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uberfire/subscriptions","organizations_url":"https://api.github.com/users/uberfire/orgs","repos_url":"https://api.github.com/users/uberfire/repos","events_url":"https://api.github.com/users/uberfire/events{/privacy}","received_events_url":"https://api.github.com/users/uberfire/received_events","type":"Organization","site_admin":false},"repo":{"id":4335576,"name":"uberfire","full_name":"uberfire/uberfire","owner":{"login":"uberfire","id":5167699,"avatar_url":"https://avatars.githubusercontent.com/u/5167699?v=3","gravatar_id":"","url":"https://api.github.com/users/uberfire","html_url":"https://github.com/uberfire","followers_url":"https://api.github.com/users/uberfire/followers","following_url":"https://api.github.com/users/uberfire/following{/other_user}","gists_url":"https://api.github.com/users/uberfire/gists{/gist_id}","starred_url":"https://api.github.com/users/uberfire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uberfire/subscriptions","organizations_url":"https://api.github.com/users/uberfire/orgs","repos_url":"https://api.github.com/users/uberfire/repos","events_url":"https://api.github.com/users/uberfire/events{/privacy}","received_events_url":"https://api.github.com/users/uberfire/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uberfire/uberfire","description":"UberFire Framework","fork":false,"url":"https://api.github.com/repos/uberfire/uberfire","forks_url":"https://api.github.com/repos/uberfire/uberfire/forks","keys_url":"https://api.github.com/repos/uberfire/uberfire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uberfire/uberfire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uberfire/uberfire/teams","hooks_url":"https://api.github.com/repos/uberfire/uberfire/hooks","issue_events_url":"https://api.github.com/repos/uberfire/uberfire/issues/events{/number}","events_url":"https://api.github.com/repos/uberfire/uberfire/events","assignees_url":"https://api.github.com/repos/uberfire/uberfire/assignees{/user}","branches_url":"https://api.github.com/repos/uberfire/uberfire/branches{/branch}","tags_url":"https://api.github.com/repos/uberfire/uberfire/tags","blobs_url":"https://api.github.com/repos/uberfire/uberfire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uberfire/uberfire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uberfire/uberfire/git/refs{/sha}","trees_url":"https://api.github.com/repos/uberfire/uberfire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uberfire/uberfire/statuses/{sha}","languages_url":"https://api.github.com/repos/uberfire/uberfire/languages","stargazers_url":"https://api.github.com/repos/uberfire/uberfire/stargazers","contributors_url":"https://api.github.com/repos/uberfire/uberfire/contributors","subscribers_url":"https://api.github.com/repos/uberfire/uberfire/subscribers","subscription_url":"https://api.github.com/repos/uberfire/uberfire/subscription","commits_url":"https://api.github.com/repos/uberfire/uberfire/commits{/sha}","git_commits_url":"https://api.github.com/repos/uberfire/uberfire/git/commits{/sha}","comments_url":"https://api.github.com/repos/uberfire/uberfire/comments{/number}","issue_comment_url":"https://api.github.com/repos/uberfire/uberfire/issues/comments{/number}","contents_url":"https://api.github.com/repos/uberfire/uberfire/contents/{+path}","compare_url":"https://api.github.com/repos/uberfire/uberfire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uberfire/uberfire/merges","archive_url":"https://api.github.com/repos/uberfire/uberfire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uberfire/uberfire/downloads","issues_url":"https://api.github.com/repos/uberfire/uberfire/issues{/number}","pulls_url":"https://api.github.com/repos/uberfire/uberfire/pulls{/number}","milestones_url":"https://api.github.com/repos/uberfire/uberfire/milestones{/number}","notifications_url":"https://api.github.com/repos/uberfire/uberfire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uberfire/uberfire/labels{/name}","releases_url":"https://api.github.com/repos/uberfire/uberfire/releases{/id}","deployments_url":"https://api.github.com/repos/uberfire/uberfire/deployments","created_at":"2012-05-15T12:40:55Z","updated_at":"2016-08-08T20:09:07Z","pushed_at":"2016-08-09T18:07:52Z","git_url":"git://github.com/uberfire/uberfire.git","ssh_url":"git@github.com:uberfire/uberfire.git","clone_url":"https://github.com/uberfire/uberfire.git","svn_url":"https://github.com/uberfire/uberfire","homepage":"http://www.uberfireframework.org","size":42480,"stargazers_count":62,"watchers_count":62,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":99,"mirror_url":null,"open_issues_count":1,"forks":99,"open_issues":1,"watchers":62,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uberfire/uberfire/pulls/462"},"html":{"href":"https://github.com/uberfire/uberfire/pull/462"},"issue":{"href":"https://api.github.com/repos/uberfire/uberfire/issues/462"},"comments":{"href":"https://api.github.com/repos/uberfire/uberfire/issues/462/comments"},"review_comments":{"href":"https://api.github.com/repos/uberfire/uberfire/pulls/462/comments"},"review_comment":{"href":"https://api.github.com/repos/uberfire/uberfire/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uberfire/uberfire/pulls/462/commits"},"statuses":{"href":"https://api.github.com/repos/uberfire/uberfire/statuses/aefa37c9ed88d8b41123424c89dc35165d9c24aa"}}}}
{"actor":{"display_login":"ederign"}}