Skip to content

Take the release's text and the IntelliJ plugin's change notes from release-notes/, and write 21.1.0's - #272

Merged
abashev merged 5 commits into
21.X.Xfrom
abashev/Changelog-для-idea-плагина
Nov 24, 2026

Hidden character warning

The head ref may contain hidden characters: "abashev/Changelog-\u0434\u043b\u044f-idea-\u043f\u043b\u0430\u0433\u0438\u043d\u0430"
Merged

abashev merged 5 commits into
21.X.Xfrom
abashev/Changelog-для-idea-плагина

Conversation

@abashev

@abashev abashev commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Based on 21.X.X; independent of the other open pull requests.

Every version of the IntelliJ plugin on the JetBrains Marketplace has empty change notes: https://plugins.jetbrains.com/plugins/list?pluginId=open-java-format gives <change-notes><![CDATA[]]></change-notes> for 21.0.2 and every version before it. The Marketplace takes them from <change-notes> in plugin.xml alone: its upload API ignores the notes it is given for an IntelliJ plugin, as plugin-repository-rest-client says, and publishPlugin sends none. The notes of an uploaded version can never change. The release notes were written into the draft GitHub release, which the release workflow opens once the plugin is already up.

How a release goes now

  1. A pull request to the release line adds release-notes/<version>.md, named after the tag.
  2. The tag is pushed. The new release-notes job fails when the file is missing or empty, and publish waits for it, so such a tag publishes nothing; the deployments jars and native-deploy uploaded can be dropped in the Portal. The fix is to add the file and move the tag.
  3. The job renders the file to HTML with GitHub's Markdown API, gh api markdown in gfm mode, as GitHub renders a release, and sed drops the attributes GitHub adds for its own pages: dir, class, rel and data-*. The IDE shows change notes as HTML and does not render Markdown (PluginDetailsPageComponent puts them into an HTML pane as they are), and the build needs no Markdown library for it: the runner has gh and jq.
  4. jetbrains-plugin passes the HTML as -PchangeNotes=<file> to both verifyPlugin and publishPlugin, so that the zip verified is the zip uploaded.
  5. github-release passes it too, for the zip on the release, and JReleaser takes release-notes/<version>.md as the draft's text through changelog.external, in place of the list of commits.

release-notes/README.md says how to write them: each paragraph and list item on one line, since GitHub breaks the line at every newline; every link in full, since the IDE gets no link for a bare #259; and paragraphs, headings, lists, links, code and bold only.

The 21.1.0 notes

A few sentences for each part, with no links but in the thanks: the IntelliJ IDEA plugin first, formatting inside the IDE's JVM (#259) and Optimize Imports (#255), then the formatter, the command line, the build plugins and Eclipse, the library and the thanks. Internal changes, logging and smaller fixes are left out.

To look at:

The plugin's description

A paragraph after the one on Optimize Imports says how to have imports fixed on every save, in Actions on Save, and that the commit dialog and the Reformat Code dialog run open-java-format for them too; and that the imports the IDE adds follow its layout unless an .editorconfig sets Java code style properties. openjavaformat/docs#17 does the same for the page on openjavaformat.dev.

What changes for users

  • From 21.1.0, the Marketplace page and the IDE's What's New show the release notes of the version.
  • The draft GitHub release has the release notes as its text, ready to publish.
  • A build without -PchangeNotes makes the plugin as before, with no change notes.

How it was checked

  • release-notes/21.1.0.md through the job's own jq | gh api markdown | sed: 2,685 bytes of HTML, where the Plugin Verifier allows 65,535, with only h2, p, a, code and strong, and no <br>. The first, longer version of the notes gave 10,367 bytes, with lists and links too.
  • patchPluginXml with -PchangeNotes writes the HTML into <change-notes> as CDATA; without the property plugin.xml has none; with a file that does not exist, the build fails with -PchangeNotes=build/missing.html: no such file.
  • jreleaserChangelog --dryrun with -PreleaseTarget=github, GITHUB_REF_TYPE=tag and GITHUB_REF_NAME=21.1.0, in a plain clone, since JGit cannot read a git worktree: build/jreleaser/release/CHANGELOG.md is release-notes/21.1.0.md byte for byte.
  • actionlint 1.7.12 passes, and zizmor 1.33.1 reports nothing, with the same 20 suppressed findings as on 21.X.X.
  • Not run: the release workflow itself, which runs only on a tag. How the Marketplace shows h2 and strong will show with the first upload.

…tes/

The JetBrains Marketplace showed no change notes for any version of
the IntelliJ plugin: plugin.xml had none, and the Marketplace takes
them from plugin.xml alone. Its upload API ignores the notes it is
given for an IntelliJ plugin, and the notes of an uploaded version can
never change. The release notes, written into the draft GitHub release
once the plugin was already up, came too late for it.

The release notes now go onto the release line before the tag, as
release-notes/<version>.md, and serve both:

- The release workflow's new release-notes job fails a tag without
  them, and the publish job waits for it, so such a tag publishes
  nothing. The IDE shows change notes as HTML and does not render
  Markdown, so the job renders them with GitHub's Markdown API, through
  the runner's gh and jq, with no converter in the build.
- The IntelliJ plugin's build takes that HTML as -PchangeNotes=<file>
  for <change-notes>, in the zip for the Marketplace and in the one on
  the GitHub release. Without the property plugin.xml has none, as
  before; with a file that does not exist, the build fails.
- JReleaser makes the Markdown the draft release's text, in place of
  the list of commits, and fails when the file is missing.

release-notes/README.md says how to write them so that they read the
same on GitHub and in the IDE.
The IntelliJ IDEA plugin formats inside the IDE's JVM and optimizes
imports with open-java-format. The formatter, the command line, the
build plugins, Eclipse and the library get a line for each change
since 21.0.2 that users can see.
A few sentences for each part, on what users notice most, and no
links: a line for every pull request, each with its issue and pull
request, read as a list of commits rather than as release notes.
The description said that Optimize Imports sorts and removes imports
as open-java-format does, but not how to have it on every save, nor
what becomes of the imports the IDE adds. It now names Actions on
Save, the commit and the Reformat Code dialog, and that inserted
imports follow open-java-format's layout unless EditorConfig sets
Java code style properties.
@abashev
abashev merged commit 5bb10b6 into 21.X.X Nov 24, 2026
16 checks passed
@abashev
abashev deleted the abashev/Changelog-для-idea-плагина branch November 24, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant