Skip to content

Commit db9e0ca

Browse files
committed
Improve repositores code
Signed-off-by: Michael Sverdlov <[email protected]>
1 parent fc7a8e6 commit db9e0ca

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

artifactory/utils/repositoryutils.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,13 @@ func GetFilteredRepositoriesWithFilterParams(servicesManager artifactory.Artifac
100100
return filterRepositoryNames(repoKeys, includePatterns, excludePatterns)
101101
}
102102

103-
// GetFilteredBuildInfoRepositories gets build info repositories and applies the include/exclude patterns to return the relevant repository names.
103+
// GetFilteredBuildInfoRepositories returns the names of all build-info repositories filtered by their names.
104+
// storageInfo - storage info response from Artifactory
105+
// includePatterns - patterns of repository names (can contain wildcards) to include in the results. A repository's name
106+
// must match at least one of these patterns in order to be included in the results. If includePatterns' length is zero,
107+
// all repositories are included.
108+
// excludePatterns - patterns of repository names (can contain wildcards) to exclude from the results. A repository's name
109+
// must NOT match any of these patterns in order to be included in the results.
104110
func GetFilteredBuildInfoRepositories(storageInfo *clientUtils.StorageInfo, includePatterns, excludePatterns []string) ([]string, error) {
105111
repoKeys := make([]string, 0, len(storageInfo.RepositoriesSummaryList))
106112

0 commit comments

Comments
 (0)