Sha256: b1e25c744dc73ca3a456de98727cc6cd776556573c3c7454c284bbbc2d9c56d0
Contents?: true
Size: 1.66 KB
Versions: 1
Compression:
Stored size: 1.66 KB
Contents
module Fastlane module Actions class GitPullAction < Action def self.run(params) commands = [] unless params[:only_tags] command = "git pull" command << " --rebase" if params[:rebase] commands += ["#{command} &&"] end commands += ["git fetch --tags"] Actions.sh(commands.join(' ')) end def self.description "Executes a simple git pull command" end def self.available_options [ FastlaneCore::ConfigItem.new(key: :only_tags, description: "Simply pull the tags, and not bring new commits to the current branch from the remote", type: Boolean, optional: true, default_value: false), FastlaneCore::ConfigItem.new(key: :rebase, description: "Rebase on top of the remote branch instead of merge", type: Boolean, optional: true, default_value: false) ] end def self.authors ["KrauseFx", "JaviSoto"] end def self.is_supported?(platform) true end def self.example_code [ 'git_pull', 'git_pull(only_tags: true) # only the tags, no commits', 'git_pull(rebase: true) # use --rebase with pull' ] end def self.category :source_control end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fastlane_hotfix-2.187.0 | fastlane/lib/fastlane/actions/git_pull.rb |