Skip to content

Commit 4769329

Browse files
committed
fix: comment error
Signed-off-by: Meng JiaFeng <jiafeng.meng@merico.dev>
1 parent f5617ae commit 4769329

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

internal/pkg/plugininstaller/ci/installer.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

internal/pkg/plugininstaller/ci/server/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)