1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-05-30 04:34:08 +02:00

Stop maintaining the changelog file

We have quite a fucntionality to maintain the changelof in actual state
However, since we switched to release from the latest EAP, we can't just update the changelog on master because it will contains also unreleased changes since the latest EAP.
The proper support for such change will require a lot of coding that will take a lot of time to implement and will eventually break.
So, it was decided to keep the changelog on YouTrack only and not to maintain the changes file.

This change still may be reverted, so the code around the changelog is note removed, but only commented out
This commit is contained in:
Alex Plate 2024-02-23 14:05:12 +02:00
parent 4938957483
commit 6d01b5be77
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F
5 changed files with 33 additions and 66 deletions

View File

@ -11,7 +11,7 @@ on:
jobs: jobs:
build: build:
if: github.event.pull_request.merged == true && github.repository == 'JetBrains/ideavim' if: false
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

View File

@ -7,15 +7,12 @@ on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: '0 10 * * *' - cron: '0 10 * * *'
# Workflow run on push is disabled to avoid conflicts when merging PR
# push:
# branches: [ master ]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository == 'JetBrains/ideavim' if: false
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

View File

@ -97,14 +97,14 @@ sealed class ReleasePlugin(private val releaseType: String) : IdeaVimBuildType({
name = "Set TeamCity build number" name = "Set TeamCity build number"
tasks = "scripts:setTeamCityBuildNumber" tasks = "scripts:setTeamCityBuildNumber"
} }
gradle { // gradle {
name = "Update change log" // name = "Update change log"
tasks = "scripts:changelogUpdateUnreleased" // tasks = "scripts:changelogUpdateUnreleased"
} // }
gradle { // gradle {
name = "Commit preparation changes" // name = "Commit preparation changes"
tasks = "scripts:commitChanges" // tasks = "scripts:commitChanges"
} // }
gradle { gradle {
name = "Add release tag" name = "Add release tag"
tasks = "scripts:addReleaseTag" tasks = "scripts:addReleaseTag"
@ -117,33 +117,24 @@ sealed class ReleasePlugin(private val releaseType: String) : IdeaVimBuildType({
name = "Publish release" name = "Publish release"
tasks = "publishPlugin" tasks = "publishPlugin"
} }
script { // script {
name = "Checkout master branch" // name = "Checkout master branch"
scriptContent = """ // scriptContent = """
echo Checkout master // echo Checkout master
git checkout master // git checkout master
""".trimIndent() // """.trimIndent()
} // }
gradle { // gradle {
name = "Update change log in master" // name = "Update change log in master"
tasks = "scripts:changelogUpdateUnreleased" // tasks = "scripts:changelogUpdateUnreleased"
} // }
gradle { // gradle {
name = "Commit preparation changes in master" // name = "Commit preparation changes in master"
tasks = "scripts:commitChanges" // tasks = "scripts:commitChanges"
} // }
script { script {
name = "Push changes to the repo" name = "Push changes to the repo"
scriptContent = """ scriptContent = """
branch=$(git branch --show-current)
echo Current branch is ${'$'}branch
if [ "master" != "${'$'}branch" ];
then
git checkout master
fi
git push origin
git checkout release git checkout release
echo checkout release branch echo checkout release branch
git branch --set-upstream-to=origin/release release git branch --set-upstream-to=origin/release release

View File

@ -23,18 +23,12 @@ It is important to distinguish EAP from traditional pre-release software.
Please note that the quality of EAP versions may at times be way below even Please note that the quality of EAP versions may at times be way below even
usual beta standards. usual beta standards.
## To Be Released ## End of changelog file maintenance
### Features: Since version 2.9.0, the changelog can be found on YouTrack
* Use `]s` and `[s` to go to the next or previous misspelled word | [VIM-330](https://youtrack.jetbrains.com/issue/VIM-330)
### Fixes: To Be Released: https://youtrack.jetbrains.com/issues/VIM?q=%23%7BReady%20To%20Release%7D%20
* [VIM-3291](https://youtrack.jetbrains.com/issue/VIM-3291) Remove sync of editor selection between different opened editors Latest Fixes: https://youtrack.jetbrains.com/issues/VIM?q=State:%20Fixed%20sort%20by:%20updated%20
* [VIM-3234](https://youtrack.jetbrains.com/issue/VIM-3234) The space character won't mix in the tab chars after >> and << commands
*
### Merged PRs:
* [805](https://github.com/JetBrains/ideavim/pull/805) by [chylex](https://github.com/chylex): VIM-3238 Fix recording a macro that replays another macro
* [806](https://github.com/JetBrains/ideavim/pull/806) by [chylex](https://github.com/chylex): Enforce LF line separator in project code style
## 2.9.0, 2024-02-20 ## 2.9.0, 2024-02-20

View File

@ -32,7 +32,6 @@ import org.eclipse.jgit.api.Git
import org.eclipse.jgit.lib.RepositoryBuilder import org.eclipse.jgit.lib.RepositoryBuilder
import org.intellij.markdown.ast.getTextInNode import org.intellij.markdown.ast.getTextInNode
import org.jetbrains.changelog.Changelog import org.jetbrains.changelog.Changelog
import org.jetbrains.changelog.exceptions.MissingVersionException
import org.kohsuke.github.GHUser import org.kohsuke.github.GHUser
import java.net.HttpURLConnection import java.net.HttpURLConnection
import java.net.URL import java.net.URL
@ -305,27 +304,13 @@ tasks {
from(createOpenApiSourceJar) { into("lib/src") } from(createOpenApiSourceJar) { into("lib/src") }
} }
val pluginVersion = version
// Don't forget to update plugin.xml
patchPluginXml { patchPluginXml {
// Don't forget to update plugin.xml
sinceBuild.set("233.11799.30") sinceBuild.set("233.11799.30")
// Get the latest available change notes from the changelog file changeNotes.set("""
changeNotes.set( Changelog: https://youtrack.jetbrains.com/issues/VIM?q=State:%20Fixed%20Fix%20versions:%20${version.get()}
provider { """.trimIndent())
with(changelog) {
val log = try {
getUnreleased()
} catch (e: MissingVersionException) {
getOrNull(pluginVersion.toString()) ?: getLatest()
}
renderItem(
log,
org.jetbrains.changelog.Changelog.OutputType.HTML,
)
}
},
)
} }
} }