Repository navigation
Take the release's text and the IntelliJ plugin's change notes from release-notes/, and write 21.1.0's - #272
Merged
Hidden character warning
The head ref may contain hidden characters: "abashev/Changelog-\u0434\u043b\u044f-idea-\u043f\u043b\u0430\u0433\u0438\u043d\u0430"
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-formatgives<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 thenotesit is given for an IntelliJ plugin, asplugin-repository-rest-clientsays, andpublishPluginsends 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
release-notes/<version>.md, named after the tag.release-notesjob fails when the file is missing or empty, andpublishwaits for it, so such a tag publishes nothing; the deploymentsjarsandnative-deployuploaded can be dropped in the Portal. The fix is to add the file and move the tag.gh api markdowningfmmode, as GitHub renders a release, andseddrops the attributes GitHub adds for its own pages:dir,class,relanddata-*. The IDE shows change notes as HTML and does not render Markdown (PluginDetailsPageComponentputs them into an HTML pane as they are), and the build needs no Markdown library for it: the runner hasghandjq.jetbrains-pluginpasses the HTML as-PchangeNotes=<file>to bothverifyPluginandpublishPlugin, so that the zip verified is the zip uploaded.github-releasepasses it too, for the zip on the release, and JReleaser takesrelease-notes/<version>.mdas the draft's text throughchangelog.external, in place of the list of commits.release-notes/README.mdsays 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
.editorconfigsets Java code style properties. openjavaformat/docs#17 does the same for the page on openjavaformat.dev.What changes for users
-PchangeNotesmakes the plugin as before, with no change notes.How it was checked
release-notes/21.1.0.mdthrough the job's ownjq | gh api markdown | sed: 2,685 bytes of HTML, where the Plugin Verifier allows 65,535, with onlyh2,p,a,codeandstrong, and no<br>. The first, longer version of the notes gave 10,367 bytes, with lists and links too.patchPluginXmlwith-PchangeNoteswrites 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 --dryrunwith-PreleaseTarget=github,GITHUB_REF_TYPE=tagandGITHUB_REF_NAME=21.1.0, in a plain clone, since JGit cannot read a git worktree:build/jreleaser/release/CHANGELOG.mdisrelease-notes/21.1.0.mdbyte for byte.21.X.X.h2andstrongwill show with the first upload.