Skip to content

Commit

Permalink
more null2na for general user data
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Dec 11, 2024
1 parent 44800b6 commit 27d1b11
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: repometrics
Title: Metrics for Your Code Repository
Version: 0.1.3.017
Version: 0.1.3.018
Authors@R:
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2172-5265"))
Expand Down
8 changes: 4 additions & 4 deletions R/data-gh-user.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ gh_user_general_internal <- function (login = "",
location = null2na_char (user$location),
company = null2na_char (user$company),
bio = null2na_char (user$bio),
avatarUrl = user$avatarUrl,
num_repositories = user$repositories$totalCount,
repos_contributed_to = user$repositoriesContributedTo$totalCount,
num_starred_repos = user$starredRepositories$totalCount
avatarUrl = null2na_char (user$avatarUrl),
num_repositories = null2na_int (user$repositories$totalCount),
repos_contributed_to = null2na_int (user$repositoriesContributedTo$totalCount),
num_starred_repos = null2na_int (user$starredRepositories$totalCount)
)

orgs <- user$organizations$nodes
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"codeRepository": "https://github.com/ropensci-review-tools/repometrics",
"issueTracker": "https://github.com/ropensci-review-tools/repometrics/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.1.3.017",
"version": "0.1.3.018",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit 27d1b11

Please sign in to comment.