Skip to content

Commit

Permalink
fix bug in issue ctbs when account no longer on github
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Oct 6, 2023
1 parent 70285c1 commit d0f0fb5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: allcontributors
Title: Acknowledge all Contributors to a Project
Version: 0.1.0.037
Version: 0.1.0.038
Authors@R:
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"))
Description: Acknowledge all contributors to a project via a single
Expand Down
10 changes: 8 additions & 2 deletions R/github.R
Original file line number Diff line number Diff line change
Expand Up @@ -308,11 +308,17 @@ get_gh_issue_people <- function (org, repo,
)
issue_authors <- c (
issue_authors,
vapply (dat, function (i) i$node$author$login, character (1L))
vapply (dat, function (i) {
res <- i$node$author$login
ifelse (is.null (res), NA_character_, res)
}, character (1L))
)
issue_author_avatar <- c (
issue_author_avatar,
vapply (dat, function (i) i$node$author$avatarUrl, character (1L))
vapply (dat, function (i) {
res <- i$node$author$avatarUrl
ifelse (is.null (res), NA_character_, res)
}, character (1L))
)
issue_state_reason <- c (
issue_state_reason,
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"codeRepository": "https://github.com/ropenscilabs/allcontributors",
"issueTracker": "https://github.com/ropenscilabs/allcontributors/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.1.0.037",
"version": "0.1.0.038",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit d0f0fb5

Please sign in to comment.