Skip to content

Commit 6b81137

Browse files
i-am-tomclaude
andauthored
s/go-change/changie/g (#23316)
There are a couple steps to this changeover - the next being to use `changie batch auto` to calculate the next version - but the PR is already massive due to generating historical changelogs, so I've split it into two parts. * This PR is much easier to review if you hide whitespace changes, because `go-change` generated Windows line endings, and `changie` generates Unix line endings. * You can ignore the entire content of `changelog/` because `CHANGELOG.md` is the result that is worth checking. --------- Co-authored-by: Claude Sonnet 4.6 <[email protected]>
1 parent 51fd46b commit 6b81137

506 files changed

Lines changed: 22223 additions & 7352 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.changie.yaml‎

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
changesDir: changelog
2+
unreleasedDir: pending
3+
headerPath: header.md
4+
changelogPath: CHANGELOG.md
5+
versionExt: md
6+
versionFormat: '## {{.Version}} ({{.Time.Format "2006-01-02"}})'
7+
kindFormat: '### {{.Kind}}'
8+
changeFormat: '- [{{.Component}}] {{.Body}}{{if .Custom.PR}} [#{{.Custom.PR}}](https://github.com/pulumi/pulumi/pull/{{.Custom.PR}}){{end}}'
9+
10+
components:
11+
- auto
12+
- auto/dotnet
13+
- auto/go
14+
- auto/java
15+
- auto/nodejs
16+
- auto/python
17+
- auto/yaml
18+
- backend
19+
- backend/diy
20+
- backend/service
21+
- build
22+
- ci
23+
- cli
24+
- cli/about
25+
- cli/cloud
26+
- cli/config
27+
- cli/convert
28+
- cli/deployment
29+
- cli/display
30+
- cli/do
31+
- cli/engine
32+
- cli/env
33+
- cli/import
34+
- cli/install
35+
- cli/neo
36+
- cli/new
37+
- cli/package
38+
- cli/plugin
39+
- cli/policy
40+
- cli/state
41+
- components
42+
- components/dotnet
43+
- components/go
44+
- components/java
45+
- components/nodejs
46+
- components/pcl
47+
- components/python
48+
- components/yaml
49+
- docs
50+
- engine
51+
- java
52+
- pcl
53+
- pkg
54+
- pkg/testing
55+
- programgen
56+
- programgen/dotnet
57+
- programgen/go
58+
- programgen/java
59+
- programgen/nodejs
60+
- programgen/pcl
61+
- programgen/python
62+
- programgen/yaml
63+
- protobuf
64+
- sdk
65+
- sdk/bun
66+
- sdk/dotnet
67+
- sdk/go
68+
- sdk/java
69+
- sdk/nodejs
70+
- sdk/python
71+
- sdkgen
72+
- sdkgen/docs
73+
- sdkgen/dotnet
74+
- sdkgen/go
75+
- sdkgen/java
76+
- sdkgen/nodejs
77+
- sdkgen/pcl
78+
- sdkgen/python
79+
- sdkgen/yaml
80+
- yaml
81+
82+
kinds:
83+
- label: Features
84+
key: feat
85+
auto: minor
86+
- label: Bug Fixes
87+
key: fix
88+
auto: patch
89+
- label: Improvements
90+
key: improvement
91+
auto: minor
92+
- label: Miscellaneous
93+
key: chore
94+
auto: patch
95+
96+
custom:
97+
- key: PR
98+
label: "GitHub Pull Request or Issue Number"
99+
type: string
100+
101+
body:
102+
minLength: 1
103+
104+
newlines:
105+
afterChange: 0
106+
beforeChange: 0
107+
afterKind: 1
108+
beforeKind: 1
109+
endOfVersion: 1

‎.github/scripts/get-changelog‎

Lines changed: 0 additions & 30 deletions
This file was deleted.

‎.github/workflows/ci-info.yml‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,13 @@ jobs:
6161
fi
6262
6363
./.github/scripts/set-output version "${PULUMI_VERSION}"
64-
- uses: actions/setup-go@v6
64+
- uses: miniscruff/changie-action@v2
6565
with:
66-
go-version: '>=1.19.0' # decoupled from version sets, used by changelog tool
67-
cache: true
68-
cache-dependency-path: '.github/scripts/get-changelog'
66+
version: v1.21.0
6967
- name: Extract release notes
7068
id: notes
7169
run: |
72-
PREVIOUS_VERSION="$(./.github/scripts/get-previous-version)"
73-
CHANGELOG="$(./.github/scripts/get-changelog "${PREVIOUS_VERSION}" --version "${{ fromJSON(steps.version.outputs.version) }}")"
70+
CHANGELOG="$(changie batch "${{ fromJSON(steps.version.outputs.version) }}" --dry-run)"
7471
./.github/scripts/set-output release-notes "${CHANGELOG}"
7572
- name: Check version
7673
if: ${{ !inputs.is-snapshot }}

‎.github/workflows/ci-lint.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,10 @@ jobs:
174174
- uses: actions/checkout@v6
175175
with:
176176
ref: ${{ inputs.ref }}
177-
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
178-
- run: uv run scripts/check-changelog.py
177+
- uses: miniscruff/changie-action@v2
178+
with:
179+
version: v1.21.0
180+
- run: changie batch auto --dry-run
179181

180182
pulumi-json:
181183
name: Lint pulumi.json

‎.github/workflows/release-pr.yml‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,28 @@ jobs:
3838
- uses: actions/checkout@v6
3939
with:
4040
ref: ${{ inputs.ref }}
41-
- uses: actions/setup-go@v6
41+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
4242
with:
43-
go-version: '>=1.19.0' # decoupled from version sets, only used by changelog tool
43+
go-version-file: sdk/go.mod
44+
- uses: miniscruff/changie-action@v2
45+
with:
46+
version: v1.21.0
4447
- name: Create PR
4548
env:
4649
PULUMI_VERSION: ${{ inputs.version }}
47-
RELEASE_NOTES: ${{ inputs.release-notes }}
4850
QUEUE_MERGE: ${{ inputs.queue-merge }}
4951
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
5052
run: |
5153
set -euo pipefail
5254
git switch --create "automation/release-v${PULUMI_VERSION}"
5355
54-
echo -en "# Changelog\n\n${RELEASE_NOTES}\n\n$(tail -n+3 CHANGELOG.md)" > ./CHANGELOG.md
56+
changie batch "${PULUMI_VERSION}"
57+
changie merge
5558
5659
git config user.name github-actions
5760
git config user.email [email protected]
5861
59-
rm ./changelog/pending/*.yaml || true
6062
git add -A
61-
6263
git commit -m "chore: changelog for v${PULUMI_VERSION}"
6364
6465
# Update go module dependencies

‎.mise.toml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ github-cli = "latest"
44
# gopls v0.22+ requires Go 1.26; pin to the latest version compatible with Go 1.25.
55
"go:golang.org/x/tools/gopls" = "0.21.0"
66
go = "1.25"
7+
changie = "1.21.0"
78
golangci-lint = "2.12.2"
89
jq = "latest"
910
node = "20"
@@ -21,6 +22,7 @@ protoc = "29.5"
2122
"go:google.golang.org/grpc/cmd/protoc-gen-go-grpc" = "v1.5.1"
2223
"npm:grpc-tools" = { version = "1.13.0", npm_args = "--ignore-scripts=false" }
2324
"npm:grpc_tools_node_protoc_ts" = "5.3.3"
25+
# This is a dev only dependency that fails to install on windows
2426
"npm:protoc-gen-js" = { version = "3.21.4", os = ["linux", "macos"], npm_args = "--ignore-scripts=false" }
2527
"go:go.abhg.dev/requiredfield/cmd/requiredfield" = "0.8.0"
2628
"github:WebAssembly/wabt" = "1.0.37"

0 commit comments

Comments
 (0)