thiagoelg commented on code in PR #2309:
URL: 
https://github.com/apache/incubator-kie-tools/pull/2309#discussion_r1595923206


##########
packages/online-editor/src/accelerators/AcceleratorsHooks.tsx:
##########
@@ -162,11 +162,16 @@ export function useAcceleratorsDispatch(workspace: 
ActiveWorkspace) {
         }
 
         const workspaceFiles = await workspaces.getFiles({ workspaceId });
-
-        // Create new temporary branch with current files, but stay on main
+        // Create a backup branch with the current files, but stay on main
         await workspaces.branch({ workspaceId, name: BACKUP_BRANCH_NAME, 
checkout: false });
 
-        // Commit moved files to moved files branch (this commit will never be 
pushed, as this branch will be deleted)
+        // Adds all files to the staging area
+        await workspaces.add({

Review Comment:
   ```suggestion
           await workspaces.stageFile({
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to