-
Notifications
You must be signed in to change notification settings - Fork 1
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
Package releases for #76 #77
base: main
Are you sure you want to change the base?
Conversation
|
||
cm_path <- check_pkg_version_path () | ||
|
||
# Code from list-packages.R to get all pkgs: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not use packages.json?
other_packages <- get_other_packages() | ||
packages <- c(hosted_packages, other_packages) | ||
packages <- packages[order(purrr::map_chr(packages, "package"))] | ||
packages <- lapply (packages, function (i) i [c ("package", "url", "branch")]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not purrr? since it' used on the line above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, no reason really, purrr throughout would be better
dat <- gh::gh_gql (query = q) | ||
page_info <- dat$data$repositoryOwner$repositories$pageInfo | ||
repo_data <- dat$data$repositoryOwner$repositories$nodes | ||
while (page_info$hasNextPage) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why get all releases and not just the latest one that's not a draft? https://github.com/ropensci/roweb3/blob/e4042ee863c9e0992ff3d34b1d81b9c9792b176d/archetypes/newsletter/index.md?plain=1#L228
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and why use the V4 API for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All releases because at least initially we need all that information that we currently don't have. And v4 API because we can grab the whole org in one call; with the REST api, we'd have to do each repo as a separate call.
No description provided.