mirror of
https://github.com/hashicorp/terraform.git
synced 2026-02-18 18:29:44 -05:00
clean up old changeloge entries
This commit is contained in:
parent
db1521a5a4
commit
11981797ad
2 changed files with 11 additions and 4 deletions
5
.changes/README.md
Normal file
5
.changes/README.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# Changelog
|
||||
|
||||
This directory contains changelog entries for each release of Terraform.
|
||||
The only important folder for changes is the `vX.XX` folder corresponding with the Terraform version released from this branch.
|
||||
All other folders are just there to make backports easier. You can remove folders with releases we won't allow backports for.
|
||||
|
|
@ -30,8 +30,7 @@ Commands:
|
|||
|
||||
nextminor:
|
||||
Run on main branch: Updates the minor version.
|
||||
|
||||
|
||||
|
||||
listIssuesInRelease:
|
||||
Lists all issues in the release passed as an argument.
|
||||
EOF
|
||||
|
|
@ -151,6 +150,11 @@ function nextminor {
|
|||
# Remove all existing per-release changelogs
|
||||
rm ./.changes/*.*.*.md
|
||||
|
||||
# Remove all old changelog entries
|
||||
rm ./.changes/v*/*.yaml
|
||||
|
||||
|
||||
|
||||
# Create a new empty version file for the next minor version
|
||||
touch ./.changes/$NEXT_VERSION.md
|
||||
|
||||
|
|
@ -164,8 +168,6 @@ function nextminor {
|
|||
# Set changies changes dir to the new version
|
||||
awk "{sub(/unreleasedDir: v$LATEST_MAJOR_MINOR/, \"unreleasedDir: v$NEXT_MAJOR_MINOR\")}1" ./.changie.yaml > temp && mv temp ./.changie.yaml
|
||||
generate "dev"
|
||||
|
||||
echo "\n\n Please clean up the .changes folders that are no longer needed, but keep the .gitkeep file for the last two versions to enable backporting."
|
||||
}
|
||||
|
||||
function listIssuesInRelease() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue