Skip to content

Commit 105cda5

Browse files
committed
Update changelog script to point to older changelogs
1 parent ab55e4e commit 105cda5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#### 👋 _Looking for changelogs for older versions? You can find them in the [changelogs](./changelogs) directory._
12
# __2.23.15__ __2024-01-31__
23
## __AWS CloudFormation__
34
- ### Features
@@ -401,3 +402,4 @@ Special thanks to the following contributors to this release:
401402
## __Redshift Serverless__
402403
- ### Features
403404
- Updates to ConfigParameter for RSS workgroup, removal of use_fips_ssl
405+

scripts/changelog/writer.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ def get_map_for_type(self, t):
127127
def write(self, s):
128128
self.output_file.write(s)
129129

130+
def write_archived_changelogs_message(changelog_file):
131+
message = " #### 👋 _Looking for changelogs for older versions? You can find them in the [changelogs](./changelogs) directory._\n"
132+
changelog_file.write(message)
133+
130134
def write_changelog():
131135
unreleased = load_unreleased_changes(".changes/next-release")
132136
released = load_all_released_changes(".changes")
@@ -141,6 +145,7 @@ def write_changelog():
141145
return
142146

143147
with open('CHANGELOG.md', 'w') as cl:
148+
write_archived_changelogs_message(cl)
144149
writer = ChangelogWriter(cl)
145150
for changes in all_changes:
146151
writer.write_changes(changes)

0 commit comments

Comments
 (0)