Skip to content

Commit

Permalink
ff only
Browse files Browse the repository at this point in the history
  • Loading branch information
maxprilutskiy committed Oct 7, 2024
1 parent cb75925 commit f74f5d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion action/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ import doStuff from './do-stuff.js';

ora.start('Rebasing latest changes from current branch');
execSync(`git fetch origin ${config.currentBranchName}`);
execSync(`git rebase ${config.currentBranchName} ${prBranchName}`, { stdio: 'inherit' });
// try to fast forward rebase
execSync(
`git rebase ${config.currentBranchName} ${prBranchName} --ff-only`,
{ stdio: 'inherit' },
);
ora.succeed('Rebased latest changes from current branch');
} else {
ora.info(`Branch ${prBranchName} does not exist, creating`);
Expand Down

0 comments on commit f74f5d8

Please sign in to comment.