Explorar o código

build: fix format-changelog.sh to include only newly added files

Zaiming (Stone) Shi %!s(int64=2) %!d(string=hai) anos
pai
achega
d3f56cdbfa
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      scripts/rel/format-changelog.sh

+ 2 - 2
scripts/rel/format-changelog.sh

@@ -115,9 +115,9 @@ if [ "$PROFILE" == "emqx-enterprise" ]; then
     changes_dir+=("$top_dir/changes/ee")
 fi
 
-while read -d "" -r file; do
+while read -r file; do
    PRS+=("$file")
-done < <(git diff --name-only -z -a "tags/${BASE_TAG}...HEAD" "${changes_dir[@]}")
+done < <(git diff --name-status "tags/${BASE_TAG}...HEAD" "${changes_dir[@]}" | grep -E '^A.*' | awk '{print $2}')
 
 TEMPLATE_FEAT_CHANGES="$(section 'feat')"
 TEMPLATE_PERF_CHANGES="$(section 'perf')"