-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: force push to protected branch with explicit config (#813)
- Loading branch information
Eunjae Lee
authored
May 12, 2020
1 parent
de2da75
commit 3647853
Showing
6 changed files
with
67 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
import runStep from '../runStep'; | ||
import { gitPush } from '../../helper'; | ||
|
||
export default ({ remote, currentBranch, dir, dryRun }) => | ||
export default ({ remote, currentBranch, forcePushBranches, dir, dryRun }) => | ||
runStep({ title: 'Pushing to remote.' }, () => { | ||
gitPush({ remote, refs: [currentBranch], dir, dryRun }); | ||
gitPush({ | ||
remote, | ||
refs: [currentBranch], | ||
forcePushBranches, | ||
dir, | ||
dryRun, | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters