Skip to content

Commit 29492c2

Browse files
committed
add quotes to view commit desc
1 parent 16c8d7a commit 29492c2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/update-dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: cd dependency_updater && ./dependency_updater --repo ../ --github-action true
3131

3232
- name: test new formatting
33-
run: echo ${{ steps.run_dependency_updater.outputs.DESC }}
33+
run: echo "${{ steps.run_dependency_updater.outputs.DESC }}"
3434

3535
# - name: create pull request
3636
# if: ${{ steps.run_dependency_updater.outputs.TITLE != '' }}

dependency_updater/dependency_updater.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,14 @@ func updater(token string, repoPath string, commit bool, githubAction bool) erro
134134
func createCommitMessage(updatedDependencies []VersionUpdateInfo, repoPath string, githubAction bool) error {
135135
var repos []string
136136
commitTitle := "chore: updated "
137-
commitDescription := "Updated dependencies for: "
137+
commitDescription := "Updated dependencies for: \n"
138138

139139
for _, dependency := range updatedDependencies {
140140
repo, tag := dependency.Repo, dependency.To
141-
commitDescription += repo + " => " + tag + " \\\\(" + dependency.DiffUrl + "\\\\) "
141+
commitDescription += repo + " => " + tag + " (" + dependency.DiffUrl + ")\n"
142142
repos = append(repos, repo)
143143
}
144-
commitDescription = strings.TrimSuffix(commitDescription, " ")
144+
commitDescription = strings.TrimSuffix(commitDescription, "\n")
145145
commitTitle += strings.Join(repos, ", ")
146146

147147
if githubAction {

0 commit comments

Comments
 (0)