Skip to content

Commit

Permalink
Bug for multiple versions
Browse files Browse the repository at this point in the history
  • Loading branch information
csgillespie committed Jan 22, 2021
1 parent 22111aa commit 1cc2d60
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: inteRgrate
Title: Opinionated Package Coding Styles
Version: 1.0.8
Version: 1.0.9
Authors@R:
person(given = "Jumping",
family = "Rivers",
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# inteRgrate 1.0.9 _2021-01-22_
* Bug: multiple pkgs in a repo

# inteRgrate 1.0.8 _2021-01-05_
* Feature: `check_version()` now works with multiple pkgs in a repo
* Bug: `check_lintr()` ignores `R/*.rda` files (fixes #33)
Expand Down
2 changes: 1 addition & 1 deletion R/check_version.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ has_pkg_changed = function(repo) {
## Remove any files not in this repo
repo_root = system2("git", args = c("rev-parse", "--show-toplevel"), stdout = TRUE)
committed_files = file.path(repo_root, committed_files)
committed_files = stringr::str_detect(getwd(), committed_files)
committed_files = committed_files[stringr::str_detect(getwd(), committed_files)]

any_changes = length(committed_files) != 0L
return(any_changes)
Expand Down

0 comments on commit 1cc2d60

Please sign in to comment.