NokiaTube | New address | Mode Desktop | Off high quality for Nokia Browser
Skip to content

feat: use release page as changelog fallback - #765

Merged
figsoda merged 1 commit into
nix-community:mainfrom
KiaraGrouwstra:changelog-releases-fallback
Apr 10, 2026
Merged

figsoda merged 1 commit into
nix-community:mainfrom
KiaraGrouwstra:changelog-releases-fallback

Conversation

@KiaraGrouwstra

@KiaraGrouwstra KiaraGrouwstra commented Apr 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • When no changelog file is found in the source tree, falls back to the forge's releases page URL as the changelog meta attribute
  • Only uses the releases page when the latest release has a meaningful body (>= 20 characters after trimming), filtering out auto-generated or empty release notes
  • Supports GitHub, GitLab, and Gitea forges

closes #641.

disclaimer i used a coding agent in the creation of this patch.

@KiaraGrouwstra
KiaraGrouwstra marked this pull request as draft April 9, 2026 08:56
@KiaraGrouwstra
KiaraGrouwstra force-pushed the changelog-releases-fallback branch 2 times, most recently from 965e0c4 to 7500211 Compare April 9, 2026 12:01
@KiaraGrouwstra
KiaraGrouwstra marked this pull request as ready for review April 9, 2026 12:03

@figsoda figsoda 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.

same comments apply to other fetchers too

Comment thread src/fetcher/gitea.rs Resolved
Comment thread src/fetcher/gitea.rs Resolved
Comment thread src/main.rs Resolved
@KiaraGrouwstra
KiaraGrouwstra force-pushed the changelog-releases-fallback branch from f8dcf4b to c15af4c Compare April 9, 2026 20:52
When no changelog file (CHANGELOG.md, CHANGES, NEWS, RELEASES) is found
in the source tree, fall back to the forge's releases page URL as the
changelog attribute. Only applies when the latest release has a
meaningful body (>= 20 characters after trimming), filtering out
auto-generated or empty release notes.

Supports GitHub, GitLab, and Gitea forges.
@KiaraGrouwstra
KiaraGrouwstra force-pushed the changelog-releases-fallback branch from c15af4c to d6a3ee8 Compare April 10, 2026 10:12
@figsoda
figsoda merged commit 21657f3 into nix-community:main Apr 10, 2026
3 checks passed
@figsoda

figsoda commented Apr 10, 2026

Copy link
Copy Markdown
Member

thanks!

@KiaraGrouwstra
KiaraGrouwstra deleted the changelog-releases-fallback branch April 11, 2026 06:09
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.

use github release page as fallback for changelog?

2 participants