Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Codeberg repositories #2843

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nfrerebeau
Copy link

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.

@@ -7,6 +7,9 @@ test_that("adds github/gitlab link when available", {

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.

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