Skip to content

Commit

Permalink
release 2.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
tangcent committed Nov 19, 2023
1 parent f455e06 commit 717a70c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 27 deletions.
8 changes: 8 additions & 0 deletions IDEA_CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
* 2.2.8

* feat: Add support for exporting APIs as .http files [(#522)](https://github.com/tangcent/easy-api/pull/522)

* feat: support search in several dialogs [(#521)](https://github.com/tangcent/easy-api/pull/521)

* Refactor: Preventing runtime.channel() from throwing exceptions on missing implementations [(#520)](https://github.com/tangcent/easy-api/pull/520)

* 2.2.7

* feat: Improve Layout and Responsiveness of Several UI Forms [#518](https://github.com/tangcent/easy-api/pull/#518)
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugin_name=EasyApi
plugin_version=2.2.7.212.0
plugin_version=2.2.8.212.0
kotlin.code.style=official
kotlin_version=1.8.0
junit_version=5.9.2
Expand Down
31 changes: 8 additions & 23 deletions idea-plugin/parts/pluginChanges.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,14 @@
<a href="https://github.com/tangcent/easy-api/releases/tag/v2.2.7">v2.2.7(2023-11-12)</a><br>
<a href="https://github.com/tangcent/easy-api/releases/tag/v2.2.8">v2.2.8(2023-11-19)</a><br>
<a href="https://github.com/tangcent/easy-api/blob/master/IDEA_CHANGELOG.md">Full Changelog</a>

<ul>
<li style="list-style: none">enhancements:</li>
<li style="list-style: none">enhancements:</li>

<li>enhancements: feat: Improve Layout and Responsiveness of Several UI Forms (<a href="https://github.com/tangcent/easy-api/pull/518">#518</a>)</li>
<li>enhancements: feat: Add support for exporting APIs as .http files (<a
href="https://github.com/tangcent/easy-api/pull/522">#522</a>)
</li>

<li>enhancements: feat: Support configuring doc.source.disable to disable documentation reading (<a href="https://github.com/tangcent/easy-api/pull/517">#517</a>)</li>
<li>enhancements: feat: support search in several dialogs (<a href="https://github.com/tangcent/easy-api/pull/521">#521</a>)
</li>

<li>enhancements: feat: Add recommended configuration for Jackson JsonPropertyOrder (<a href="https://github.com/tangcent/easy-api/pull/516">#516</a>)</li>

<li>enhancements: feat: Add new rule field.order.with (<a href="https://github.com/tangcent/easy-api/pull/515">#515</a>)</li>

<li>enhancements: feat: add rules `postman.format.after` (<a href="https://github.com/tangcent/easy-api/pull/513">#513</a>)</li>

<li>enhancements: feat: Apply field rules to getter and setter methods (<a href="https://github.com/tangcent/easy-api/pull/512">#512</a>)</li>

</ul>

<ul>
<li style="list-style: none">fixes:</li>

<li>fixes: fix: fix issue with SessionStorage not works (<a href="https://github.com/tangcent/easy-api/pull/509">#509</a>)</li>

<li>fixes: fix: fix thread warning (<a href="https://github.com/tangcent/easy-api/pull/508">#508</a>)</li>

<li>fixes: fix: added support for strict check in jakarta.validation and javax.validation (<a href="https://github.com/tangcent/easy-api/pull/507">#507</a>)</li>
</ul>
</ul>
18 changes: 15 additions & 3 deletions plugin-script/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,16 @@ echo "Last version: ${last_version}"
release_date=$(date +"%Y-%m-%d")

# Calculate the next version
next_version=$(echo ${last_version} | awk -F. '{split($0,a,".");a[3]++;printf("%d.%d.%d",a[1],a[2],a[3])}')
parts=(${last_version//./ })

if [[ ${parts[2]//[!0-9]/} == 9 ]]; then
parts[2]=0
parts[1]=$((parts[1] + 1))
else
parts[2]=$((parts[2] + 1))
fi

next_version="${parts[0]}.${parts[1]}.${parts[2]}"
echo "Next version: ${next_version}"

# Create a new release branch based on the next version
Expand All @@ -32,6 +41,9 @@ others=$(echo "${commits}" | grep -ivE "^feat|^fix" | sed 's/^/<li>/;s/$/<\/li>/
# Update the version number in the gradle.properties file
sed -i.bak "s/version=${last_version}/version=${next_version}/g" ${basedir}/gradle.properties && rm ${basedir}/gradle.properties.bak

# Update the version number in the plugin.xml
sed -i.bak "s/<version\>${last_version}/<version\>${next_version}/" ${basedir}/idea-plugin/src/main/resources/META-INF/plugin.xml && rm ${basedir}/idea-plugin/src/main/resources/META-INF/plugin.xml.bak

# Write the header to the pluginChanges.html file
echo "<a href=\"https://github.com/tangcent/easy-api/releases/tag/v${next_version}\">v${next_version}(${release_date})</a>" > ${basedir}/idea-plugin/parts/pluginChanges.html
echo "<br/>" >> ${basedir}/idea-plugin/parts/pluginChanges.html
Expand All @@ -56,14 +68,14 @@ fi
tidy -q -indent -wrap 0 --show-body-only yes ${basedir}/idea-plugin/parts/pluginChanges.html > ${basedir}/idea-plugin/parts/pluginChanges_temp.html
mv ${basedir}/idea-plugin/parts/pluginChanges_temp.html ${basedir}/idea-plugin/parts/pluginChanges.html

commits_for_changes_log=$(git log --pretty=format:"%s" v${last_version}..HEAD | sed -e 's/^\(.*\)(\(#[0-9]*\))$/\ * \1 \[\2\]\(https:\/\/github.com\/tangcent\/easy-api\/pull\/\2\)\n/')
commits_for_changes_log=$(git log --pretty=format:"%s" v${last_version}..HEAD | sed -e 's/^\(.*\)(#\([0-9]*\))$/\ * \1 \[\(#\2\)]\(https:\/\/github.com\/tangcent\/easy-api\/pull\/\2\)\n/')
echo "commits_for_changes_log:${commits_for_changes_log}"

echo "${commits_for_changes_log}" | cat - ${basedir}/IDEA_CHANGELOG.md > tmp && mv tmp ${basedir}/IDEA_CHANGELOG.md
echo "* ${next_version}" | cat - ${basedir}/IDEA_CHANGELOG.md > tmp && mv tmp ${basedir}/IDEA_CHANGELOG.md

# Add all changes and create a new commit
git add ${basedir}/gradle.properties ${basedir}/IDEA_CHANGELOG.md ${basedir}/idea-plugin/parts/pluginChanges.html
git add ${basedir}/gradle.properties ${basedir}/IDEA_CHANGELOG.md ${basedir}/idea-plugin/parts/pluginChanges.html ${basedir}/idea-plugin/src/main/resources/META-INF/plugin.xml

# Create a new commit with the list of commit messages
commit_message="release ${next_version}"
Expand Down

0 comments on commit 717a70c

Please sign in to comment.