Skip to content

Commit d3aaefc

Browse files
ktaletskfcollonval
authored andcommitted
Add push action at the end of commit
1 parent da4af48 commit d3aaefc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/GitPanel.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,10 @@ export class GitPanel extends React.Component<IGitPanelProps, IGitPanelState> {
260260
console.error(error);
261261
this.props.logger.log({ ...errorLog, error });
262262
}
263+
// If enabled commit and push, push here
264+
if (this.props.settings.composite['useCommitAndPush']) {
265+
await this.props.commands.execute(CommandIDs.gitPush);
266+
}
263267
};
264268

265269
/**

0 commit comments

Comments
 (0)