Skip to content

Conversation

@vinnymac
Copy link
Contributor

@vinnymac vinnymac commented Feb 2, 2026

Adds a changelog button to the package due

image image

The approach I am using here is pretty similar to the one used by npm-fetch-changelog for fetching changelogs

Relates to #501

@vercel
Copy link

vercel bot commented Feb 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
npmx.dev Ready Ready Preview, Comment Feb 2, 2026 6:09pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview Feb 2, 2026 6:09pm
npmx-lunaria Ignored Ignored Feb 2, 2026 6:09pm

Request Review

@github-actions
Copy link

github-actions bot commented Feb 2, 2026

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
lunaria/files/en-US.json Source changed, localizations will be marked as outdated.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

function getReleaseUrl(ref: RepoRef, tag: string): string {
const encodedTag = encodeURIComponent(tag)

switch (ref.provider) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does tangled.sh have release pages? Do we have some better pattern for this or prior art?

const host = ref.host ?? 'codeberg.org'
return `https://${host}/api/v1/repos/${ref.owner}/${ref.repo}/releases/tags/${encodedTag}`
}
// Bitbucket, Sourcehut, Gitee, Tangled, Radicle don't have easy release tag APIs
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is an assumption I am making, I could use some help here on reality

@WilcoSp
Copy link
Contributor

WilcoSp commented Feb 3, 2026

Looks very good and this does help making the changelog page and thanks for figuring out each of the release api's of the different repository services as it'll make it easier to make adapters.

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.

2 participants