Skip to content

Commit

Permalink
Merge pull request #4 from wurli/fix-msg
Browse files Browse the repository at this point in the history
Change 'GitHub' to 'GitLab' for some packages
  • Loading branch information
wurli authored Feb 15, 2024
2 parents a1ee7e9 + 8848d86 commit c511538
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/available_version.R
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ available_version_impl_git <- function(pkg, username, repo, type = c("github", "
returned_version <- desc[["Version"]]

list(
Source_Name = "GitHub",
Source_Name = switch(type, github = "GitHub", gitlab = "GitLab"),
Source_URL = switch(type,
github = github_url_make(username, repo),
gitlab = gitlab_url_make(username, repo)
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-available_version_git.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ test_that("Description files can be read from GitHub public repos", {
test_that("Description files can be read from GitHub private repos", {

skip_if_offline()
skip_on_ci()

# NOTE: This PAT is 'fine-grained' and gives read-only access for a single
# repo containing an empty package {updateme.testpkg.private}.
Expand Down Expand Up @@ -64,6 +65,7 @@ test_that("Description files can be read from GitLab public repos", {
test_that("Description files can be read from GitLab private repos", {

skip_if_offline()
skip_on_ci()

# NOTE: This PAT is 'fine-grained' and gives read-only access for a single
# repo containing an empty package {updateme.testpkg.private}.
Expand Down

0 comments on commit c511538

Please sign in to comment.