Skip to content

Commit

Permalink
release 2.5.9 (#997)
Browse files Browse the repository at this point in the history
  • Loading branch information
tangcent committed Jul 2, 2023
1 parent 96f8022 commit f87fb82
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 18 deletions.
17 changes: 17 additions & 0 deletions IDEA_CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
* 2.5.9

* fix: fix swagger3.config [(#996)](https://github.com/tangcent/easy-yapi/pull/996)

* doc: declare Requirements & Compatibility [(#994)](https://github.com/tangcent/easy-yapi/pull/994)

* build: update workflows name [(#995)](https://github.com/tangcent/easy-yapi/pull/995)

* build: update workflows [(#989)](https://github.com/tangcent/easy-yapi/pull/989)

* amend: remove support of GroovyActionExt [(#991)](https://github.com/tangcent/easy-yapi/pull/991)

* build: update scripts [(#988)](https://github.com/tangcent/easy-yapi/pull/988)

* amend: clear uiWeakReference [(#983)](https://github.com/tangcent/easy-yapi/pull/983)

* amend: modify several parameters in RequestRuleWrap nullable [(#984)](https://github.com/tangcent/easy-yapi/pull/984)
* 2.5.8

* amend: remove deprecated API usages [(#961)](https://github.com/tangcent/easy-yapi/pull/961)
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=EasyYapi
plugin_version=2.5.8.212.0
plugin_version=2.5.9.212.0
kotlin.code.style=official
kotlin_version=1.8.0
junit_version=5.9.2
Expand Down
20 changes: 6 additions & 14 deletions idea-plugin/parts/pluginChanges.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
<a href="https://github.com/tangcent/easy-yapi/releases/tag/v2.5.8">v2.5.8.212.0(2023-04-19)</a>
<br/>
<a href="https://github.com/tangcent/easy-yapi/releases/tag/v2.5.9">v2.5.9(2023-07-02)</a><br>
<a href="https://github.com/tangcent/easy-yapi/blob/master/IDEA_CHANGELOG.md">Full Changelog</a>
<ul>enhancement:
<li> feat: output field.demo value to postman/markdown <a
href="https://github.com/tangcent/easy-yapi/pull/958">(#958)</a>
</li>
<li> feat: read yapi token from config <a
href="https://github.com/tangcent/easy-yapi/pull/955">(#955)</a>
</li>
</ul>
<ul>fix:
<li> fix: set _id back after save api to yapi success <a
href="https://github.com/tangcent/easy-yapi/pull/952">(#952)</a>
</li>

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

<li>fixes: fix: fix swagger3.config (<a href="https://github.com/tangcent/easy-yapi/pull/996">#996</a>)</li>
</ul>
2 changes: 1 addition & 1 deletion idea-plugin/src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<idea-plugin>
<id>com.itangcent.idea.plugin.easy-yapi</id>
<name>EasyYapi</name>
<version>2.5.8.212.0</version>
<version>2.5.9.212.0</version>
<vendor email="pentatangcent@gmail.com" url="https://github.com/tangcent">Tangcent</vendor>

<description><![CDATA[ Description will be added by gradle build]]></description>
Expand Down
7 changes: 5 additions & 2 deletions plugin-script/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,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-yapi/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 +59,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-yapi\/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-yapi\/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 f87fb82

Please sign in to comment.