Module: Fastlane::Helper::Ios::GitHelper

Defined in:
lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_git_helper.rb

Overview

Helper methods to execute git-related operations that are specific to iOS projects

Class Method Summary collapse

Class Method Details

.commit_version_bumpObject

Commit the files that are modified when we bump version numbers on an iOS project

This typically commits:

- The files in `./config/*` – especially `Version.*.xcconfig` files


14
15
16
17
18
# File 'lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_git_helper.rb', line 14

def self.commit_version_bump
  files_list = [File.join(get_from_env!(key: 'PROJECT_ROOT_FOLDER'), 'config', '.')]

  Fastlane::Helper::GitHelper.commit(message: 'Bump version number', files: files_list)
end

.get_from_env!(key:) ⇒ Object



20
21
22
23
24
# File 'lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_git_helper.rb', line 20

def self.get_from_env!(key:)
  ENV.fetch(key) do
    UI.user_error! "Could not find value for \"#{key}\" in environment."
  end
end