Skip to content

feat: changelog button - #766

Closed
vinnymac wants to merge 4 commits into
npmx-dev:mainfrom
vinnymac:vt/changelog
Closed

feat: changelog button#766
vinnymac wants to merge 4 commits into
npmx-dev:mainfrom
vinnymac:vt/changelog

Conversation

@vinnymac

@vinnymacvinnymac commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

Adds a changelog button to the package due

imageimage

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

Relates to #501

@vercel

vercelBot commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
npmx.devReadyReadyPreview, CommentFeb 2, 2026 6:09pm
2 Skipped Deployments
ProjectDeploymentActionsUpdated (UTC)
docs.npmx.devIgnoredIgnoredPreviewFeb 2, 2026 6:09pm
npmx-lunariaIgnoredIgnoredFeb 2, 2026 6:09pm

Request Review

@github-actions

github-actionsBot commented Feb 2, 2026

Copy link
Copy Markdown

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

FileNote
lunaria/files/en-US.jsonSource changed, localizations will be marked as outdated.
Warnings reference
IconDescription
🔄️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.

@vinnymacvinnymac mentioned this pull request Feb 2, 2026
15 tasks
function getReleaseUrl(ref: RepoRef, tag: string): string {
const encodedTag = encodeURIComponent(tag)

switch (ref.provider) {

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown
ContributorAuthor

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
Copy Markdown
Contributor

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.

@vinnymac

Copy link
Copy Markdown
ContributorAuthor

Closing this proof of concept for the real deal over in: #1233 🎉

@vinnymacvinnymac closed this Feb 9, 2026
Sign up for freeto 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

@vinnymac@WilcoSp