Skip to content

Commit 919a988

Browse files
committed
Adding handy script to create release notes
[skip ci]
1 parent e25900f commit 919a988

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

scripts/create-release-notes.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/usr/bin/env bash
2+
3+
RELEASE_TAG=$1
4+
PREVIOUS_TAG=$2
5+
DEST_DIRECTORY=$3
6+
7+
8+
echo "" > ${DEST_DIRECTORY}/release_notes_${RELEASE_TAG}.md
9+
echo "### Changelog" >> ${DEST_DIRECTORY}/release_notes_${RELEASE_TAG}.md
10+
echo "" >> ${DEST_DIRECTORY}/release_notes_${RELEASE_TAG}.md
11+
echo "For each component's detailed changelog, please check:" >> ${DEST_DIRECTORY}/release_notes_${RELEASE_TAG}.md
12+
echo "* [Ruby](https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES)" >> ${DEST_DIRECTORY}/release_notes_${RELEASE_TAG}.md
13+
echo "* [Python](https://github.com/SeleniumHQ/selenium/blob/trunk/py/CHANGES)" >> ${DEST_DIRECTORY}/release_notes_${RELEASE_TAG}.md
14+
echo "* [JavaScript](https://github.com/SeleniumHQ/selenium/blob/trunk/javascript/node/selenium-webdriver/CHANGES.md)" >> ${DEST_DIRECTORY}/release_notes_${RELEASE_TAG}.md
15+
echo "* [Java](https://github.com/SeleniumHQ/selenium/blob/trunk/java/CHANGELOG)" >> ${DEST_DIRECTORY}/release_notes_${RELEASE_TAG}.md
16+
echo "* [DotNet](https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/CHANGELOG)" >> ${DEST_DIRECTORY}/release_notes_${RELEASE_TAG}.md
17+
echo "* [IEDriverServer](https://github.com/SeleniumHQ/selenium/blob/trunk/cpp/iedriverserver/CHANGELOG)" >> ${DEST_DIRECTORY}/release_notes_${RELEASE_TAG}.md
18+
echo "" >> ${DEST_DIRECTORY}/release_notes_${RELEASE_TAG}.md
19+
echo "### Commits in this release" >> ${DEST_DIRECTORY}/release_notes_${RELEASE_TAG}.md
20+
echo "<details>" >> ${DEST_DIRECTORY}/release_notes_${RELEASE_TAG}.md
21+
echo "<summary>Click to see all the commits included in this release</summary>" >> ${DEST_DIRECTORY}/release_notes_${RELEASE_TAG}.md
22+
echo "" >> ${DEST_DIRECTORY}/release_notes_${RELEASE_TAG}.md
23+
git --no-pager log "${PREVIOUS_TAG}...${RELEASE_TAG}" --pretty=format:"* [\`%h\`](http://github.com/seleniumhq/selenium/commit/%H) - %s :: %an" --reverse >> ${DEST_DIRECTORY}/release_notes_${RELEASE_TAG}.md
24+
echo "" >> ${DEST_DIRECTORY}/release_notes_${RELEASE_TAG}.md
25+
echo "</details>" >> ${DEST_DIRECTORY}/release_notes_${RELEASE_TAG}.md
26+

0 commit comments

Comments
 (0)