Skip to content

Commit 546e509

Browse files
authored
Fix make renovate changelog script (#24086)
Renovate should generate a changelog for us, but we forgot to udpate the script for this when switchign to changie. Currently we get errors like #24083 (comment)
1 parent 7d30b0c commit 546e509

2 files changed

Lines changed: 20 additions & 10 deletions

File tree

‎renovate.json5‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@
100100
commands: [
101101
'make renovate',
102102
],
103+
installTools: {
104+
mise: {},
105+
},
103106
executionMode: 'branch', // Only run once per PR.
104107
},
105108
},
@@ -144,6 +147,9 @@
144147
commands: [
145148
'make renovate',
146149
],
150+
installTools: {
151+
mise: {},
152+
},
147153
executionMode: 'branch', // Only run once per PR.
148154
},
149155
},

‎scripts/renovate-changelog.py‎

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
scripts/get-language-providers.sh.
66
77
Invoked from `make renovate` (which is itself called from a renovate postUpgradeTasks hook). Detects bumps by diffing
8-
the script against HEAD and shells out to `go-change create` for each one. No-op when nothing relevant changed.
8+
the script against HEAD and shells out to `changie new` for each one. No-op when nothing relevant changed.
99
"""
1010

1111
import re
@@ -23,8 +23,15 @@
2323
# Matches an array entry like: "dotnet v3.102.0"
2424
ENTRY_RE = re.compile(r'^\s*"([a-z]+)\s+(v[0-9][0-9.]*)"\s*$')
2525

26-
# Pinned version to match the version used by `make changelog` in the Makefile.
27-
GO_CHANGE = ["go", "run", "github.com/pulumi/[email protected]", "create"]
26+
CHANGIE = [
27+
"mise",
28+
"exec",
29+
"--yes",
30+
"--",
31+
"changie",
32+
"new",
33+
"--interactive=false",
34+
]
2835

2936

3037
def added_entries(diff: str):
@@ -51,19 +58,16 @@ def main():
5158

5259
for lang, version in added_entries(diff):
5360
scope = SCOPE_FOR.get(lang, lang)
54-
title = f"upgrade-{lang}-to-{version.replace('.', '-')}"
5561
description = f"Upgrade {lang} to {version}"
5662
subprocess.run(
57-
GO_CHANGE
63+
CHANGIE
5864
+ [
59-
"-t",
65+
"--kind",
6066
"chore",
61-
"-s",
67+
"--component",
6268
scope,
63-
"-d",
69+
"--body",
6470
description,
65-
"--title",
66-
title,
6771
],
6872
check=True,
6973
stdin=subprocess.DEVNULL,

0 commit comments

Comments
 (0)