Skip to content

Comments

Support Codeberg repositories#2843

Merged
hadley merged 3 commits intor-lib:mainfrom
nfrerebeau:support-codeberg-repos
Jan 27, 2025
Merged

Support Codeberg repositories#2843
hadley merged 3 commits intor-lib:mainfrom
nfrerebeau:support-codeberg-repos

Conversation

@nfrerebeau
Copy link
Contributor

This PR adds support for code repositories hosted on Codeberg. This allows the BugReports and URL fields to be recognized for building links in the Navbar, Home Sidebar and reference pages.

Fix for #2842.

pkg <- pkg_navbar(github_url = "https://gitlab.com/r-lib/pkgdown")
expect_snapshot_output(navbar_components(pkg))

pkg <- pkg_navbar(github_url = "https://codeberg.org/r-lib/pkgdown")
Copy link
Member

Choose a reason for hiding this comment

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

I don't tihnk it's worth adding a snapshot test here as your code is already covered by the other tests, and snapshot tests are expensive to review.

@hadley
Copy link
Member

hadley commented Jan 27, 2025

Just one last step: can you please add a bullet to the top of NEWS.md? It should briefly describe the change and end with (@yourname, #issuenumber).

@hadley hadley merged commit 74fda8c into r-lib:main Jan 27, 2025
16 checks passed
@hadley
Copy link
Member

hadley commented Jan 27, 2025

Thank you!

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