Skip to content

Commit 5466b87

Browse files
committed
chore: update pr formatting
1 parent bd1ba2e commit 5466b87

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

dependency_updater/dependency_updater.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,17 @@ 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+
var updates []string
137+
136138
commitTitle := "chore: updated "
137-
commitDescription := "Updated dependencies for: "
139+
commitDescription := "### Dependency Updates"
138140

139141
for _, dependency := range updatedDependencies {
140142
repo, tag := dependency.Repo, dependency.To
141-
commitDescription += repo + " => " + tag + " (" + dependency.DiffUrl + ") "
143+
updates = append(updates, fmt.Sprintf("**%s - %s**: %s", repo, tag, dependency.DiffUrl))
142144
repos = append(repos, repo)
143145
}
144-
commitDescription = strings.TrimSuffix(commitDescription, " ")
146+
commitDescription = strings.Join(updates, "\n")
145147
commitTitle += strings.Join(repos, ", ")
146148

147149
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)