From e257913a67828b89a67902243b3c42cd594a7639 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 20 Jun 2026 06:59:28 +0000 Subject: [PATCH 1/2] ci: auto-update git submodule via Dependabot (gitsubmodule) Add a Dependabot config so the macros submodule is bumped automatically: Dependabot opens a PR whenever its tracked branch (main) advances, removing the manual 'git submodule update --remote' step. See the ADR in d-morrison/macros (docs/adr/0001-macros-submodule-versioning.md). Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01DrceBhXtcKRFaPPEMwxAZN --- .github/dependabot.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..aed1157 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,16 @@ +# Keep git submodules up to date automatically. +# +# This template embeds the shared `macros` repo as a git submodule. Dependabot's +# `gitsubmodule` updater opens a PR whenever a submodule's tracked branch (here, +# `main`) advances, so neither this template nor the books generated from it have +# to bump the pointer by hand. See the ADR at d-morrison/macros +# (docs/adr/0001-macros-submodule-versioning.md) for why we track `main` rather +# than a pinned release tag. +version: 2 +updates: + - package-ecosystem: "gitsubmodule" + directory: "/" + schedule: + interval: "weekly" + commit-message: + prefix: "chore(submodule)" From e41a2bb5ea95f791948b958f3c8630c602f8c85a Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 20 Jun 2026 07:08:20 +0000 Subject: [PATCH 2/2] ci: clarify Dependabot tracks the submodule's default branch The .gitmodules entry sets no explicit branch, so Dependabot follows the macros submodule's default branch (currently main). Reword the comment to say so rather than implying main is configured (per review feedback). Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01DrceBhXtcKRFaPPEMwxAZN --- .github/dependabot.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index aed1157..3dbb2c9 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,9 +1,9 @@ # Keep git submodules up to date automatically. # # This template embeds the shared `macros` repo as a git submodule. Dependabot's -# `gitsubmodule` updater opens a PR whenever a submodule's tracked branch (here, -# `main`) advances, so neither this template nor the books generated from it have -# to bump the pointer by hand. See the ADR at d-morrison/macros +# `gitsubmodule` updater opens a PR whenever a submodule's default branch +# (currently `main`) advances, so neither this template nor the books generated +# from it have to bump the pointer by hand. See the ADR at d-morrison/macros # (docs/adr/0001-macros-submodule-versioning.md) for why we track `main` rather # than a pinned release tag. version: 2