Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sub-bullets remove root bullet #147

Closed
Roboroads opened this issue Dec 13, 2022 · 3 comments · Fixed by #166
Closed

Sub-bullets remove root bullet #147

Roboroads opened this issue Dec 13, 2022 · 3 comments · Fixed by #166
Assignees
Labels
bug Something isn't working regression
Milestone

Comments

@Roboroads
Copy link

Roboroads commented Dec 13, 2022

Describe the bug
When patching the changelog (using JetBrains/intellij-platform-plugin-template next branch) the sub-bullets replace the root bullet.

To Reproduce
Create a changelog with sub bullets (actual example from my repo)

# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- Add way to customize vendor path.
  - Also fixed the bug from this PR where it crashed if you didn't configure anything.
- Add ANSI mode parsing (instead of regex-replace-guessing in the output window)

When patched, the new changelog looks like this:

# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [2.5.0]
### Added
- - Also fixed the bug from this PR where it crashed if you didn't configure anything.
- Add ANSI mode parsing (instead of regex-replace-guessing in the output window)

Expected behavior

# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [2.5.0]
### Added
- Add way to customize vendor path.
  - Also fixed the bug from this PR where it crashed if you didn't configure anything.
- Add ANSI mode parsing (instead of regex-replace-guessing in the output window)

Environment:

  • OS: Gitlab Runner (Ubuntu)
  • Gradle Changelog Plugin Version 2.0.0
  • Gradle Version 7.5.1
@Roboroads Roboroads added the bug Something isn't working label Dec 13, 2022
GitHubPang added a commit to GitHubPang/Rossynt that referenced this issue Feb 3, 2023
@4ch1m
Copy link

4ch1m commented Feb 6, 2023

I can confirm that bug.

The (valid) markdown is being rendered just fine in the preview:

However, the plugin is rendering this:

@YannCebron
Copy link
Member

YannCebron/m68kplugin@52cf846

since it affected "old" versions I caught it only by accident

YannCebron added a commit to YannCebron/m68kplugin that referenced this issue Mar 4, 2023
@JojOatXGME
Copy link
Contributor

I noticed this issue is not specific to (sub-)bullets. The plugin generally seems to skip/remove all but the last paragraph for each bullet. For example,

- AA
- BB

  CC

  DD
- EE

becomes

- AA
- DD
- EE

Roboroads added a commit to Roboroads/laravel-tinker that referenced this issue Apr 16, 2023
Roboroads added a commit to Roboroads/laravel-tinker that referenced this issue Apr 16, 2023
* Changelog update - v2.6.0

* chore: Fixes mangles changelog caused by JetBrains/gradle-changelog-plugin#147

---------

Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Robbin "Roboroads" Schepers <[email protected]>
@hsz hsz closed this as completed in #166 Jun 1, 2023
@hsz hsz added this to the next milestone Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants