Skip to content

fix: the #ddev-description stanza in add-on install actions not showing if it's the first line#7022

Merged
rfay merged 1 commit into
ddev:mainfrom
hanoii:ddev-description-fix
Feb 27, 2025
Merged

fix: the #ddev-description stanza in add-on install actions not showing if it's the first line#7022
rfay merged 1 commit into
ddev:mainfrom
hanoii:ddev-description-fix

Conversation

@hanoii

@hanoii hanoii commented Feb 26, 2025

Copy link
Copy Markdown
Collaborator

I just noticed that my add-on's post install actions were not showing the #ddev-description as I was used to.

I looked at the code and found that the regex was not finding it if the stanza was right next to - |. One more newline and it was picked up.

I added an extra newline on the last commit of that file, but trying it with the latest release of the add-on show showcase the issue.

@hanoii hanoii requested a review from a team as a code owner February 26, 2025 12:56
@hanoii hanoii changed the title fix: ddev-description not showing on addon fix: #ddev-description in add-on install actions not showing Feb 26, 2025
@hanoii hanoii changed the title fix: #ddev-description in add-on install actions not showing fix: #ddev-description in add-on install actions not showing Feb 26, 2025
@hanoii hanoii changed the title fix: #ddev-description in add-on install actions not showing fix: ddev-description in add-on install actions not showing Feb 26, 2025
@hanoii hanoii changed the title fix: ddev-description in add-on install actions not showing fix: the #ddev-description stanza in add-on install actions not showing if it's the first line Feb 26, 2025
@github-actions

Copy link
Copy Markdown

@rfay rfay left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks safe to me. Do you think this was a regression, or just an oversight? I do hope we can find more sophisticated ways to do this sort of thing in the future.

@rfay rfay requested a review from stasadev February 26, 2025 16:10
@hanoii

hanoii commented Feb 26, 2025

Copy link
Copy Markdown
Collaborator Author

According to blame this goes back to 2 years so maybe it was an oversight.

@hanoii

hanoii commented Feb 26, 2025

Copy link
Copy Markdown
Collaborator Author

Also in looking in the issue queue as I vaguely remember this being an issue before, I found #5277, which although not the same thing, it's worth linking the two.

@stasadev stasadev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@rfay rfay merged commit 1c40893 into ddev:main Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants