File tree Expand file tree Collapse file tree
internal/pkg/plugininstaller/ci Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,8 +60,9 @@ func DeleteCIFiles(options plugininstaller.RawOptions) error {
6060 }
6161 //3. delete ci files from git repo
6262 commitInfo := & git.CommitInfo {
63- CommitMsg : deleteCommitMsg ,
64- GitFileMap : gitMap ,
63+ CommitMsg : deleteCommitMsg ,
64+ GitFileMap : gitMap ,
65+ CommitBranch : opts .ProjectRepo .Branch ,
6566 }
6667 return gitClient .DeleteFiles (commitInfo )
6768}
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ type CIServerOptions interface {
1313 // for GitHub: return ".github/workflows" or ".github/workflows/subFilename"
1414 // for gitlab, jenkins: will ignore subFilename param
1515 CIFilePath (subFilename ... string ) string
16- // filterCIFilesFunc returns a filter function to select ci config file
16+ // FilterCIFilesFunc returns a filter function to select ci config file
1717 FilterCIFilesFunc () file.DirFIleFilterFunc
18- // getGitNameFunc returns a function to transform file path to git name of ci config file
18+ // GetGitNameFunc returns a function to transform file path to git name of ci config file
1919 GetGitNameFunc () file.DirFileNameFunc
2020}
2121
You can’t perform that action at this time.
0 commit comments