Replies: 5 comments 13 replies
-
|
I think this is more a r-universe question than a r-multiverse question: |
Beta Was this translation helpful? Give feedback.
-
|
Could this be reopened? Release is supported in codeberg. Since codeberg is, afaik, not supported in `{devtools} (and others), R multiverse could be interesting here. On the technical side: my limited understanding is that those functions need to be updated (and their respective tests and functions):
I am unclear of what is the exported file(s?) needed for Did I miss other codes that need to be changed for making the technical part works? Would something like that be an option for assert_release_* (using https://codeberg.org/api/swagger#/repository/repoListReleases)? : assert_release_codeberg <- function(url) {
parsed_url <- url_parse(url)
# here I assumed release path it seems it is repo path
url_path <- unlist(strsplit(parsed_url[["path"]], "/"))
owner <- url_path[2]
repo <- url_path[3]
endpoint <- sprintf(
"https://codeberg.org/api/v1/repos/%s/%s/releases",
owner,
repo
)
releases <- try(
suppressWarnings(
jsonlite::stream_in(
con = gzcon(url(endpoint)),
simplifyVector = TRUE,
simplifyDataFrame = TRUE
)
),
silent = TRUE
)
if (inherits(releases, "try-error")) {
return(try_message(releases))
}
if (!nrow(releases) || !any(!releases$prerelease)) {
return(no_release_message(url))
}
}
Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
We have merged r-universe-org/sync#6. Would be great if one of the codeberg users could test it. |
Beta Was this translation helpful? Give feedback.
-
|
Adding Codeberg support for R-multiverse at r-multiverse/multiverse.internals#100 and r-multiverse/r-multiverse.github.io#77. |
Beta Was this translation helpful? Give feedback.
-
|
Done |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What would be the requirements for an alternative git interface like https://codeberg.org to be supported in addition to GitHub and GitLab?
Beta Was this translation helpful? Give feedback.
All reactions