diff --git a/.github/renovate.json b/.github/renovate.json index fc13058..e3b6647 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -3,5 +3,11 @@ "extends": [ "github>cgrindel/renovate_presets:ruleset_base", "github>cgrindel/renovate_presets:cgrindel_default" - ] + ], + "postUpgradeTasks": { + "commands": [ + "bazelisk run //:tidy_modified" + ], + "executionMode": "branch" + } } diff --git a/BUILD.bazel b/BUILD.bazel index 3fe4026..d91ec2f 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -4,7 +4,7 @@ load( "bzlformat_missing_pkgs", "bzlformat_pkg", ) -load("@cgrindel_bazel_starlib//bzltidy:defs.bzl", "tidy") +load("@cgrindel_bazel_starlib//bzltidy:defs.bzl", "tidy", "tidy_all") load( "@cgrindel_bazel_starlib//updatesrc:defs.bzl", "updatesrc_update_all", @@ -33,6 +33,13 @@ tidy( ], ) +tidy_all(name = "tidy_all") + +tidy_all( + name = "tidy_modified", + mode = "modified", +) + updatesrc_update_all( name = "update_all", targets_to_run = [ diff --git a/MODULE.bazel b/MODULE.bazel index 1e987d2..d71f753 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -5,7 +5,7 @@ module( bazel_dep(name = "platforms", version = "0.0.6") bazel_dep(name = "bazel_skylib", version = "1.4.2") -bazel_dep(name = "cgrindel_bazel_starlib", version = "0.16.1") +bazel_dep(name = "cgrindel_bazel_starlib", version = "0.16.2") bazel_dep( name = "rules_swift", version = "1.9.0",