Skip to content

Commit

Permalink
rm bots from ctb lists
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Feb 12, 2025
1 parent 7ee1585 commit 33a596a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 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.2.2.008
Version: 0.2.2.009
Authors@R: c(
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre")),
person("Chris", "Hartgerink", role = "aut"),
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
## Minor changes

- Updated documentation to described different ways of keeping allcontributors lists up-to-date (#15; thanks to @maelle)
- Remove any "-bot" contributors from list ("actions-bot", "ropensci-review-bot", and similar)

---

Expand Down
4 changes: 4 additions & 0 deletions R/github.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#' @param org Github organisation name for repository
#' @param repo Repository within `org` for which contributors are to be
#' extracted
#' @param rm_ctbs_ptn Remove contributors which match this pattern (such as
#' "actions-bot", or "ropensci-review-bot").
#' @param quiet If `FALSE`, display progress information on screen.
#' @inheritParams add_contributors
#'
Expand All @@ -20,6 +22,7 @@ get_contributors <- function (org, repo,
exclude_issues = NULL,
exclude_not_planned = TRUE,
alphabetical = FALSE,
rm_ctbs_ptn = "\\-bot$",
check_urls = TRUE,
quiet = FALSE) {

Expand Down Expand Up @@ -96,6 +99,7 @@ get_contributors <- function (org, repo,
}

ctbs <- rbind (ctb_code, issue_authors, issue_contributors)
ctbs <- ctbs [which (!grepl (ctbs_ptn, ctbs$logins)), ]

if (check_urls) {
ctbs <- check_github_urls (ctbs, quiet = quiet)
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/ropensci/allcontributors",
"issueTracker": "https://github.com/ropensci/allcontributors/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.2.2.008",
"version": "0.2.2.009",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit 33a596a

Please sign in to comment.