Skip to content

Commit db71d5f

Browse files
authored
chore: update formatting / fix go mod declaration (#574)
1 parent bd1ba2e commit db71d5f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

dependency_updater/dependency_updater.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,18 @@ func updater(token string, repoPath string, commit bool, githubAction bool) erro
133133

134134
func createCommitMessage(updatedDependencies []VersionUpdateInfo, repoPath string, githubAction bool) error {
135135
var repos []string
136+
descriptionLines := []string{
137+
"### Dependency Updates",
138+
}
139+
136140
commitTitle := "chore: updated "
137-
commitDescription := "Updated dependencies for: "
138141

139142
for _, dependency := range updatedDependencies {
140143
repo, tag := dependency.Repo, dependency.To
141-
commitDescription += repo + " => " + tag + " (" + dependency.DiffUrl + ") "
144+
descriptionLines = append(descriptionLines, fmt.Sprintf("**%s** - %s: [diff](%s)", repo, tag, dependency.DiffUrl))
142145
repos = append(repos, repo)
143146
}
144-
commitDescription = strings.TrimSuffix(commitDescription, " ")
147+
commitDescription := strings.Join(descriptionLines, "\n")
145148
commitTitle += strings.Join(repos, ", ")
146149

147150
if githubAction {

dependency_updater/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module dependency_updater
1+
module github.com/base/node/dependency_updater
22

33
go 1.24.3
44

0 commit comments

Comments
 (0)