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

Package releases for #76 #77

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

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