From a47d7795826a5d2df8c765d37b7beb65eea354bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=28Buo-ren=2C=20Lin=29?= Date: Sun, 26 Nov 2023 16:29:29 +0800 Subject: [PATCH] lint: Improve location of the definition of the `git log` command options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ๆž—ๅšไป(Buo-ren, Lin) --- continuous-integration/generate-release-description.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/continuous-integration/generate-release-description.sh b/continuous-integration/generate-release-description.sh index f351098..1b670b4 100755 --- a/continuous-integration/generate-release-description.sh +++ b/continuous-integration/generate-release-description.sh @@ -38,9 +38,6 @@ if ! git_tag_count="$(wc -l <<<"${git_tag_list}")"; then fi detailed_changes_markup="## Detailed changes"$'\n\n' -git_log_opts=( - --format='format:* %s (%h) - %an' -) if test -v CI_COMMIT_TAG; then release_tag="${CI_COMMIT_TAG}" @@ -107,6 +104,9 @@ else "${previous_git_tag}" \ "${release_tag}" \ 1>&2 + git_log_opts=( + --format='format:* %s (%h) - %an' + ) if ! detailed_changes_markup+="$( git log \ "${git_log_opts[@]}" \