Skip to content

Commit

Permalink
Delete unreleased pr_* files
Browse files Browse the repository at this point in the history
In a different way.
As naming of these files is not consistent.
  • Loading branch information
pallavisontakke committed Aug 26, 2024
1 parent d10a478 commit 8c68aae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions scripts/release/create_minor_release_PR_commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,11 @@ tail -n "$CHANGELOG_ENTRIES" CHANGELOG.md.tmp >> CHANGELOG.md
rm CHANGELOG.md.tmp


echo "---- Deleting fix_* & pr_* files ----"
echo "---- Deleting all unreleased pr_* , fix_* , ... style files, except template ones ----"

rm -f .unreleased/fix_*
rm -f .unreleased/pr_*
cd .unreleased
ls |grep -vi 'template' |grep -vi 'release_notes'|xargs git rm
cd ..

git diff HEAD --name-only

Expand Down
7 changes: 4 additions & 3 deletions scripts/release/create_release_PR_commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,11 @@ tail -n "$CHANGELOG_ENTRIES" CHANGELOG.md.tmp >> CHANGELOG.md
rm CHANGELOG.md.tmp


echo "---- Deleting fix_* & pr_* files ----"
echo "---- Deleting all unreleased pr_* , fix_* , ... style files, except template ones ----"

rm -f .unreleased/fix_*
rm -f .unreleased/pr_*
cd .unreleased
ls |grep -vi 'template' |grep -vi 'release_notes'|xargs git rm
cd ..

git diff HEAD --name-only

Expand Down

0 comments on commit 8c68aae

Please sign in to comment.