Skip to content

Commit

Permalink
fix: correctly use git log range for release notes. (#2366)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandagg committed May 30, 2023
1 parent dfd1aad commit e3a0048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/publish-release
Expand Up @@ -51,5 +51,5 @@ SORTED_TAGS=$(git tag --sort="-version:refname" --list --format="%(refname:strip
FILTERED_TAGS=$(echo ${SORTED_TAGS} | grep 'v[0-9.]*' | grep -v '-')
LAST_PUBLISHED_TAG=$(echo ${FILTERED_TAGS} | head -n1)

RELEASE_NOTES=$(git log --graph --format="%h %s" "${LAST_PUBLISHED_TAG}...${TAG_NAME}~1")
RELEASE_NOTES=$(git log --graph --format="%h %s" "${LAST_PUBLISHED_TAG}..${TAG_NAME}~1")
gh release create "${TAG_NAME}" --title="${TAG_NAME}" --notes="${RELEASE_NOTES}"

0 comments on commit e3a0048

Please sign in to comment.