no changes custom template message should be INF not ERR

This commit is contained in:
zy9ard3 2025-08-25 01:15:56 +05:30 committed by GitHub
parent 309018fbf4
commit 5be258f948
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,7 +53,11 @@ func (customTemplate *customTemplateGitHubRepo) Update(ctx context.Context) {
}
err := customTemplate.pullChanges(clonePath, customTemplate.githubToken)
if err != nil {
if strings.Contains(err.Error(), "already up-to-date") {
gologger.Info().Msgf("%s", err)
} else {
gologger.Error().Msgf("%s", err)
}
} else {
gologger.Info().Msgf("Repo %s/%s successfully pulled the changes.\n", customTemplate.owner, customTemplate.reponame)
}