Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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 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
updates:
- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "chore(submodule)"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The repo's workflows use a number of third-party Actions at pinned major versions (actions/checkout@v4, r-lib/actions/setup-r@v2, quarto-dev/quarto-actions/setup@v2, etc.). Now that dependabot.yml exists, adding a github-actions ecosystem entry here is zero extra effort and keeps action pins current automatically:

Suggested change
prefix: "chore(submodule)"
commit-message:
prefix: "chore(submodule)"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "chore(actions)"

Not a blocker — just a natural complement to the submodule entry.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, but I'm keeping this PR scoped to the submodule automation that was requested. A github-actions ecosystem entry is a separate (also reasonable) kind of update that would start opening action-bump PRs across this template and every repo generated from it, so it's worth deciding on deliberately rather than bundling it in here. Easy to add as a follow-up if you'd like it — the snippet above is exactly right.


Generated by Claude Code

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The gitsubmodule entry is correct. Since dependabot.yml now exists, adding a github-actions entry would also keep the workflow action pins current with zero extra maintenance cost:

Suggested change
prefix: "chore(submodule)"
commit-message:
prefix: "chore(submodule)"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "chore(actions)"

Note: the two @HEAD pins in existing workflows (quarto-dev/quarto-actions/setup@HEAD, r-lib/actions/setup-r-dependencies@HEAD) are unversioned and Dependabot won't touch them — but it would bump all the @v2/@v4 pins, including resolving the mixed actions/checkout@v4 vs @v5 across workflows. Non-blocking.

Loading