Skip to content

Commit

Permalink
Merge pull request #1919 from kubernetes-sigs/raffo/release-script-up…
Browse files Browse the repository at this point in the history
…date

Update release script to include squashed commits
  • Loading branch information
k8s-ci-robot committed Jan 13, 2021
2 parents daeee26 + 4175d2f commit 3aed4c0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/releaser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ function generate_changelog {
pr_author="$(gh pr view "$pr_num" | grep author | awk '{ print $2 }' | tr $'\n' ' ')"
printf "* %s (%s) @%s\n\n" "$pr_desc" "$pr_num" "$pr_author"
done

git log "$previous_tag".. --reverse --oneline --grep='(#' | \
while read -r sha title; do
pr_num="$(grep -o '#[[:digit:]]\+' <<<"$title")"
pr_desc="$(git show -s --format=%s "$sha")"
pr_author="$(gh pr view "$pr_num" | grep author | awk '{ print $2 }' | tr $'\n' ' ')"
printf "* %s (%s) @%s\n\n" "$pr_desc" "$pr_num" "$pr_author"
done
}

function create_release {
Expand Down

0 comments on commit 3aed4c0

Please sign in to comment.