shared/models/git_repo.rb
# This method commits and pushes all changes
# if `file_to_commit` is `nil`, all files will be added
# TODO: this method isn't actually tested yet
This method commits and pushes all changes
if `file_to_commit` is `nil`, all files will be added
TODO: this method isn't actually tested yet
This method commits and pushes all changes if ` file_to_commit ` is ` nil ` all files will be added TODO : this method isn ' t actually tested yet
def commit_changes!(commit_message: nil, file_to_commit: nil, repo_auth: self.repo_auth)
      git_action_with_queue do
        logger.debug("starting commit_changes! #{self.git_config.git_url}")
        raise "file_to_commit not yet implemented" if file_to_commit
        commit_message ||= "Automatic commit by fastlane.ci"
        self.setup_author(full_name: repo_auth.full_name, username: repo_auth.username)
        git.add(all: true) 
        git.commit(commit_message)
        git.push
        logger.debug("done commit_changes! #{self.git_config.git_url}")
      end
    end
def commit_changes! ( commit_message : nil , file_to_commit : nil , repo_auth : self . repo_auth ) git_action_with_queue do logger . debug ( "starting commit_changes! #{self.git_config.git_url}" ) raise "file_to_commit not yet implemented" if file_to_commit commit_message ||= "Automatic commit by fastlane.ci" self . setup_author ( full_name : repo_auth . full_name , username : repo_auth . username ) git . add ( all : true ) git . commit ( commit_message ) git . push logger . debug ( "done commit_changes! #{self.git_config.git_url}" ) end end
This method commits and pushes all changes
if `file_to_commit` is `nil`, all files will be added
TODO: this method isn't actually tested yet
This method commits and pushes all changes if ` file_to_commit ` is ` nil ` all files will be added TODO : this method isn ' t actually tested yet
# TODO: for now we only add all files
commit_message
file_to_commit
repo_auth