Skip to content

Commit

Permalink
Adding a success log to the command to ensure that it is always execu…
Browse files Browse the repository at this point in the history
…ted before creating a PR. (#11698)

Co-authored-by: “Thavachelvam <“thavaahariharangit@git.com”>
  • Loading branch information
thavaahariharangit and “Thavachelvam authored Feb 28, 2025
1 parent 754c5bc commit 04feb66
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,11 @@ def run_go_mod_tidy
# updating versions because there are some edge cases where it's OK to fail
# (such as generated files not available yet to us).
_, stderr, status = Open3.capture3(environment, command)
Dependabot.logger.info "Failed to `go mod tidy`: #{stderr}" unless status.success?
if status.success?
Dependabot.logger.info "`go mod tidy` succeeded"
else
Dependabot.logger.info "Failed to `go mod tidy`: #{stderr}"
end
end

sig { void }
Expand Down

0 comments on commit 04feb66

Please sign in to comment.