Skip to content

Commit

Permalink
Bug for checking version diff (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
csgillespie authored Mar 17, 2021
1 parent 14e2454 commit 6b3f236
Show file tree
Hide file tree
Showing 3 changed files with 4 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.11
Version: 1.0.12
Authors@R:
person(given = "Jumping",
family = "Rivers",
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# inteRgrate 1.0.12 _2021-03-17_
* Bug: detecting version changes
# inteRgrate 1.0.11 _2021-03-14_
* Bug: Previous bug fix caused issues

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 = committed_files[stringr::str_detect(getwd(), committed_files)]
committed_files = committed_files[stringr::str_detect(committed_files, pattern = getwd())]

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

0 comments on commit 6b3f236

Please sign in to comment.