commit

in lib/release_tools/remote_repository.rb [195:208]


    def commit(files, no_edit: false, amend: false, message: nil, author: nil)
      run_git ['add', *Array(files)] if files

      cmd = %w[commit]
      cmd << '--no-edit' if no_edit
      cmd << '--amend' if amend
      cmd << %[--author="#{author}"] if author
      cmd += ['--message', %["#{message}"]] if message

      output, status = run_git(cmd)

      status.success? || raise(CannotCommitError.new(output))
    end