Method: Fastlane::Actions::CommitVersionBumpAction.modified_files_relative_to_repo_root
- Defined in:
- fastlane/lib/fastlane/actions/commit_version_bump.rb
.modified_files_relative_to_repo_root(repo_root) ⇒ Object
270 271 272 273 274 275 276 277 278 279 |
# File 'fastlane/lib/fastlane/actions/commit_version_bump.rb', line 270 def modified_files_relative_to_repo_root(repo_root) return [] if Actions.lane_context[SharedValues::MODIFIED_FILES].nil? root_pathname = Pathname.new(repo_root) all_modified_files = Actions.lane_context[SharedValues::MODIFIED_FILES].map do |path| next path unless path =~ %r{^/} Pathname.new(path).relative_path_from(root_pathname).to_s end return all_modified_files.uniq end |