Skip to content

flatpak: Filter out links from description#23130

Open
Venefilyn wants to merge 1 commit intocockpit-project:mainfrom
Venefilyn:flatpak/description-links
Open

flatpak: Filter out links from description#23130
Venefilyn wants to merge 1 commit intocockpit-project:mainfrom
Venefilyn:flatpak/description-links

Conversation

@Venefilyn
Copy link
Copy Markdown
Member

Within the changelog we cannot have URLs within changelog entries
themselves, instead FlatHub needs us to have all links within the URL
element itself.

As we already have a tag now that includes plaintext links - which we
didn't before - we need to filter this out to prevent the changelog to
update with data that fails validation.

Signed-off-by: Freya Gustavsson freya@venefilyn.se

@Venefilyn Venefilyn requested a review from mvollmer April 14, 2026 12:56
Within the changelog we cannot have URLs within changelog entries
themselves, instead FlatHub needs us to have all links within the URL
element itself.

As we already have a tag now that includes plaintext links - which we
didn't before - we need to filter this out to prevent the changelog to
update with data that fails validation.

Signed-off-by: Freya Gustavsson <freya@venefilyn.se>
@Venefilyn Venefilyn force-pushed the flatpak/description-links branch from 1905e4a to 5b174db Compare April 14, 2026 12:58
@Venefilyn
Copy link
Copy Markdown
Member Author

@mvollmer with the latest 360.1 release we had plaintext links which broke flathub releases. So with tag now being created with plaintext links easiest thing is to modify the script to filter out links

This matches stuff like (https://example.com) as well

@Venefilyn Venefilyn added the release-blocker Targetted for next release label Apr 14, 2026
@Venefilyn Venefilyn moved this to improvement in Pilot tasks Apr 14, 2026
@Venefilyn Venefilyn moved this from improvement to minor in Pilot tasks Apr 14, 2026
def element(tag, text=None, children=(), **kwargs):
tag = ET.Element(tag, kwargs)
tag.text = text
tag.text = text if text is None else re.sub(r'\S+http\S+', '', text).strip()
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.

So with this, the 360.1 description would come out as

Prevent overmounting also for btrfs subvolumes ()

right? (With the empty parentheses.)

Maybe it is better to manually clean this up in the rare cases that it happens?

Copy link
Copy Markdown
Member

@mvollmer mvollmer left a comment

Choose a reason for hiding this comment

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

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-blocker Targetted for next release

Projects

Status: minor

Development

Successfully merging this pull request may close these issues.

2 participants