diff --git a/dependency_updater/dependency_updater.go b/dependency_updater/dependency_updater.go index 8d2d03fc7..c861eac7f 100644 --- a/dependency_updater/dependency_updater.go +++ b/dependency_updater/dependency_updater.go @@ -133,15 +133,18 @@ func updater(token string, repoPath string, commit bool, githubAction bool) erro func createCommitMessage(updatedDependencies []VersionUpdateInfo, repoPath string, githubAction bool) error { var repos []string + descriptionLines := []string{ + "### Dependency Updates", + } + commitTitle := "chore: updated " - commitDescription := "Updated dependencies for: " for _, dependency := range updatedDependencies { repo, tag := dependency.Repo, dependency.To - commitDescription += repo + " => " + tag + " (" + dependency.DiffUrl + ") " + descriptionLines = append(descriptionLines, fmt.Sprintf("**%s** - %s: [diff](%s)", repo, tag, dependency.DiffUrl)) repos = append(repos, repo) } - commitDescription = strings.TrimSuffix(commitDescription, " ") + commitDescription := strings.Join(descriptionLines, "\n") commitTitle += strings.Join(repos, ", ") if githubAction { diff --git a/dependency_updater/go.mod b/dependency_updater/go.mod index 6bb598e96..d467a3e55 100644 --- a/dependency_updater/go.mod +++ b/dependency_updater/go.mod @@ -1,4 +1,4 @@ -module dependency_updater +module github.com/base/node/dependency_updater go 1.24.3