Skip to content

Package releases for #76#77

Open
mpadge wants to merge 12 commits intoropensci-org:mainfrom
mpadge:pkg-versions
Open

Package releases for #76#77
mpadge wants to merge 12 commits intoropensci-org:mainfrom
mpadge:pkg-versions

Conversation

@mpadge
Copy link
Contributor

@mpadge mpadge commented Jul 23, 2024

No description provided.


cm_path <- check_pkg_version_path ()

# Code from list-packages.R to get all pkgs:
Copy link
Collaborator

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")])
Copy link
Collaborator

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

Copy link
Contributor Author

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) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator

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?

Copy link
Contributor Author

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.

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