Skip to content

Commit 87a1064

Browse files
committed
Track externals by release tag where available
1 parent a2deb1d commit 87a1064

2 files changed

Lines changed: 24 additions & 23 deletions

File tree

.github/renovate.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@
1919
"/^src/\\.chezmoiexternal\\.toml\\.tmpl$/"
2020
],
2121
"matchStrings": [
22-
"# renovate: currentValue=(?<currentValue>\\S+)\\s+url = \"https://raw\\.githubusercontent\\.com/(?<depName>[^/]+/[^/]+)/(?<currentDigest>[0-9a-f]+)/",
23-
"# renovate: currentValue=(?<currentValue>\\S+)\\s+url = \"https://github\\.com/(?<depName>[^/]+/[^/]+)/archive/(?<currentDigest>[0-9a-f]+)\\.tar\\.gz\""
24-
],
25-
"datasourceTemplate": "github-digest"
22+
"# renovate: datasource=(?<datasource>\\S+) currentValue=(?<currentValue>\\S+)\\s+url = \"https://raw\\.githubusercontent\\.com/(?<depName>[^/]+/[^/]+)/(?<currentDigest>[0-9a-f]+)/",
23+
"# renovate: datasource=(?<datasource>\\S+) currentValue=(?<currentValue>\\S+)\\s+url = \"https://github\\.com/(?<depName>[^/]+/[^/]+)/archive/(?<currentDigest>[0-9a-f]+)\\.tar\\.gz\""
24+
]
2625
},
2726
{
2827
"customType": "regex",

src/.chezmoiexternal.toml.tmpl

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,68 @@
11
# Renovate's custom manager (.github/renovate.json) keeps each commit hash up to date.
2-
# Add the annotation comment right before a url, with currentValue set to the repository's
3-
# default branch; datasource and depName are derived from the url:
4-
# # renovate: currentValue=<branch>
2+
# Add the annotation comment right before a url; depName is derived from the url. Track a
3+
# release tag where the upstream keeps tagging, and the default branch otherwise -- only
4+
# tags carry a release timestamp, so `minimumReleaseAge` can be enforced for them:
5+
# # renovate: datasource=github-tags currentValue=<tag>
6+
# # renovate: datasource=github-digest currentValue=<branch>
57
# url = "https://github.com/<owner>/<repo>/archive/<commit hash>.tar.gz"
68

79
[".claude/hooks/git-safe.sh"]
810
type = "file"
9-
# renovate: currentValue=main
10-
url = "https://raw.githubusercontent.com/Bande-a-Bonnot/Boucle-framework/538e59af24758823623093e2fc1b9c8357efc9c0/tools/git-safe/hook.sh"
11+
# renovate: datasource=github-tags currentValue=v0.13.0
12+
url = "https://raw.githubusercontent.com/Bande-a-Bonnot/Boucle-framework/4c2dc556aa6794c0747d9dc3ba1c6b045c1ad761/tools/git-safe/hook.sh"
1113
executable = true
1214

1315
[".claude/skills/grill-me/SKILL.md"]
1416
type = "file"
15-
# renovate: currentValue=main
16-
url = "https://raw.githubusercontent.com/mattpocock/skills/2ab958093e83e0ec752e6c1c5932da465bf23e0c/skills/productivity/grill-me/SKILL.md"
17+
# renovate: datasource=github-tags currentValue=v1.1.0
18+
url = "https://raw.githubusercontent.com/mattpocock/skills/d574778f94cf620fcc8ce741584093bc650a61d3/skills/productivity/grill-me/SKILL.md"
1719

1820
[".claude/skills/grilling/SKILL.md"]
1921
type = "file"
20-
# renovate: currentValue=main
21-
url = "https://raw.githubusercontent.com/mattpocock/skills/2ab958093e83e0ec752e6c1c5932da465bf23e0c/skills/productivity/grilling/SKILL.md"
22+
# renovate: datasource=github-tags currentValue=v1.1.0
23+
url = "https://raw.githubusercontent.com/mattpocock/skills/d574778f94cf620fcc8ce741584093bc650a61d3/skills/productivity/grilling/SKILL.md"
2224

2325
[".codex/skills/commit/SKILL.md"]
2426
type = "file"
25-
# renovate: currentValue=main
27+
# renovate: datasource=github-tags currentValue=v2.1.220
2628
url = "https://raw.githubusercontent.com/anthropics/claude-code/7ef6eec9d9ba84ea6f233f26c45f1df5c5991843/plugins/commit-commands/commands/commit.md"
2729

2830
[".codex/skills/grill-me/SKILL.md"]
2931
type = "file"
30-
# renovate: currentValue=main
31-
url = "https://raw.githubusercontent.com/mattpocock/skills/2ab958093e83e0ec752e6c1c5932da465bf23e0c/skills/productivity/grill-me/SKILL.md"
32+
# renovate: datasource=github-tags currentValue=v1.1.0
33+
url = "https://raw.githubusercontent.com/mattpocock/skills/d574778f94cf620fcc8ce741584093bc650a61d3/skills/productivity/grill-me/SKILL.md"
3234

3335
[".codex/skills/grilling/SKILL.md"]
3436
type = "file"
35-
# renovate: currentValue=main
36-
url = "https://raw.githubusercontent.com/mattpocock/skills/2ab958093e83e0ec752e6c1c5932da465bf23e0c/skills/productivity/grilling/SKILL.md"
37+
# renovate: datasource=github-tags currentValue=v1.1.0
38+
url = "https://raw.githubusercontent.com/mattpocock/skills/d574778f94cf620fcc8ce741584093bc650a61d3/skills/productivity/grilling/SKILL.md"
3739

3840
[".config/nvim/pack/vendor/start/copilot.vim"]
3941
type = "archive"
40-
# renovate: currentValue=release
42+
# renovate: datasource=github-tags currentValue=v1.59.0
4143
url = "https://github.com/github/copilot.vim/archive/a12fd5672110c8aa7e3c8419e28c96943ca179be.tar.gz"
4244
stripComponents = 1
4345

4446
[".config/nvim/pack/vendor/start/lualine.nvim"]
4547
type = "archive"
46-
# renovate: currentValue=master
48+
# renovate: datasource=github-digest currentValue=master
4749
url = "https://github.com/nvim-lualine/lualine.nvim/archive/221ce6b2d999187044529f49da6554a92f740a96.tar.gz"
4850
stripComponents = 1
4951

5052
[".config/nvim/pack/vendor/start/solarized.nvim"]
5153
type = "archive"
52-
# renovate: currentValue=master
54+
# renovate: datasource=github-digest currentValue=master
5355
url = "https://github.com/shaunsingh/solarized.nvim/archive/fe02ed49cc017cc93657bd6306a2624394611c69.tar.gz"
5456
stripComponents = 1
5557

5658
[".config/nvim/pack/vendor/start/vim-fugitive"]
5759
type = "archive"
58-
# renovate: currentValue=master
60+
# renovate: datasource=github-digest currentValue=master
5961
url = "https://github.com/tpope/vim-fugitive/archive/3b753cf8c6a4dcde6edee8827d464ba9b8c4a6f0.tar.gz"
6062
stripComponents = 1
6163

6264
[".config/nvim/pack/vendor/start/vim-surround"]
6365
type = "archive"
64-
# renovate: currentValue=master
66+
# renovate: datasource=github-digest currentValue=master
6567
url = "https://github.com/tpope/vim-surround/archive/3d188ed2113431cf8dac77be61b842acb64433d9.tar.gz"
6668
stripComponents = 1

0 commit comments

Comments
 (0)