From 5466b8704f7996404c689b6d32ed048c82305b0a Mon Sep 17 00:00:00 2001 From: Danyal Prout Date: Wed, 8 Oct 2025 16:29:30 -0500 Subject: [PATCH 1/3] chore: update pr formatting --- dependency_updater/dependency_updater.go | 8 +++++--- dependency_updater/go.mod | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dependency_updater/dependency_updater.go b/dependency_updater/dependency_updater.go index 8d2d03fc..c1fff83f 100644 --- a/dependency_updater/dependency_updater.go +++ b/dependency_updater/dependency_updater.go @@ -133,15 +133,17 @@ func updater(token string, repoPath string, commit bool, githubAction bool) erro func createCommitMessage(updatedDependencies []VersionUpdateInfo, repoPath string, githubAction bool) error { var repos []string + var updates []string + commitTitle := "chore: updated " - commitDescription := "Updated dependencies for: " + commitDescription := "### Dependency Updates" for _, dependency := range updatedDependencies { repo, tag := dependency.Repo, dependency.To - commitDescription += repo + " => " + tag + " (" + dependency.DiffUrl + ") " + updates = append(updates, fmt.Sprintf("**%s - %s**: %s", repo, tag, dependency.DiffUrl)) repos = append(repos, repo) } - commitDescription = strings.TrimSuffix(commitDescription, " ") + commitDescription = strings.Join(updates, "\n") commitTitle += strings.Join(repos, ", ") if githubAction { diff --git a/dependency_updater/go.mod b/dependency_updater/go.mod index 6bb598e9..d467a3e5 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 From aa2b763187970731d8589f1b27b51710c256b205 Mon Sep 17 00:00:00 2001 From: Danyal Prout Date: Wed, 8 Oct 2025 16:31:25 -0500 Subject: [PATCH 2/3] make diff a link --- dependency_updater/dependency_updater.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dependency_updater/dependency_updater.go b/dependency_updater/dependency_updater.go index c1fff83f..bcdd4191 100644 --- a/dependency_updater/dependency_updater.go +++ b/dependency_updater/dependency_updater.go @@ -140,7 +140,7 @@ func createCommitMessage(updatedDependencies []VersionUpdateInfo, repoPath strin for _, dependency := range updatedDependencies { repo, tag := dependency.Repo, dependency.To - updates = append(updates, fmt.Sprintf("**%s - %s**: %s", repo, tag, dependency.DiffUrl)) + updates = append(updates, fmt.Sprintf("**%s** - %s: [diff](%s)", repo, tag, dependency.DiffUrl)) repos = append(repos, repo) } commitDescription = strings.Join(updates, "\n") From ff697a43a947179f204f73492d340fa26edd172d Mon Sep 17 00:00:00 2001 From: Danyal Prout Date: Wed, 8 Oct 2025 16:39:53 -0500 Subject: [PATCH 3/3] add title --- dependency_updater/dependency_updater.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dependency_updater/dependency_updater.go b/dependency_updater/dependency_updater.go index bcdd4191..c861eac7 100644 --- a/dependency_updater/dependency_updater.go +++ b/dependency_updater/dependency_updater.go @@ -133,17 +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 - var updates []string + descriptionLines := []string{ + "### Dependency Updates", + } commitTitle := "chore: updated " - commitDescription := "### Dependency Updates" for _, dependency := range updatedDependencies { repo, tag := dependency.Repo, dependency.To - updates = append(updates, fmt.Sprintf("**%s** - %s: [diff](%s)", repo, tag, dependency.DiffUrl)) + descriptionLines = append(descriptionLines, fmt.Sprintf("**%s** - %s: [diff](%s)", repo, tag, dependency.DiffUrl)) repos = append(repos, repo) } - commitDescription = strings.Join(updates, "\n") + commitDescription := strings.Join(descriptionLines, "\n") commitTitle += strings.Join(repos, ", ") if githubAction {