Skip to content

Commit 0346c3a

Browse files
authored
chore: update release notes draft gen (#2932)
1 parent 6d94c92 commit 0346c3a

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

utils/draft_release_notes.sh

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,32 @@ cd "$(dirname $0)"
88
git fetch --tags [email protected]:microsoft/playwright.git >/dev/null 2>/dev/null
99
LAST_RELEASE=$(git describe --tags $(git rev-list --tags --max-count=1))
1010

11-
echo "## Browser Versions"
12-
echo
13-
node ./print_versions.js
14-
echo
1511
echo "## Highlights"
1612
echo
1713
echo "TODO: \`git diff ${LAST_RELEASE}:docs/api.md docs/api.md\`"
1814
echo
19-
echo "## Breaking API Changes"
15+
echo "## Browser Versions"
2016
echo
21-
echo "TODO: \`git diff ${LAST_RELEASE}:docs/api.md docs/api.md\`"
17+
node ./print_versions.js
2218
echo
2319
echo "## New APIs"
2420
echo
2521
echo "TODO: \`git diff ${LAST_RELEASE}:docs/api.md docs/api.md\`"
2622
echo
27-
echo "## Bug Fixes"
28-
echo
29-
./list_closed_issues.sh "${LAST_RELEASE}"
23+
CLOSED_ISSUES=$(./list_closed_issues.sh "${LAST_RELEASE}")
24+
ISSUES_COUNT=$(echo "${CLOSED_ISSUES}" | wc -l | xargs)
25+
echo "<details>"
26+
echo " <summary><b>Issues Closed (${ISSUES_COUNT})</b></summary>"
3027
echo
31-
echo "## Raw Notes"
28+
echo "${CLOSED_ISSUES}"
3229
echo
33-
git log --pretty="%h - %s" "${LAST_RELEASE}"..HEAD
30+
echo "</details>"
3431

32+
COMMITS=$(git log --pretty="%h - %s" "${LAST_RELEASE}"..HEAD)
33+
COMMITS_COUNT=$(echo "${COMMITS}" | wc -l | xargs)
34+
echo "<details>"
35+
echo " <summary><b>Commits (${COMMITS_COUNT})</b></summary>"
36+
echo
37+
echo "${COMMITS}"
38+
echo
39+
echo "</details>"

0 commit comments

Comments
 (0)