Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions dependency_updater/dependency_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While you're at it - can you set the type / risk / severity in the PR description? Or do you want a human to set those before merging (looks required by infra)

commitTitle += strings.Join(repos, ", ")

if githubAction {
Expand Down
2 changes: 1 addition & 1 deletion dependency_updater/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module dependency_updater
module github.com/base/node/dependency_updater

go 1.24.3

Expand Down
Loading