release: added patch
This commit is contained in:
@@ -20,7 +20,7 @@ module Shared
|
||||
user = parts.shift
|
||||
standard = parts.shift
|
||||
error "invalid user: #{user}" unless [ENV['FEATURE_USER'],ENV['USER']].include? user
|
||||
error "invalid branch: #{standard}" unless standard_branches.include? standard
|
||||
error "invalid branch: #{standard}" unless standard_branches.include? standard or standard =~ /\d+\.\d+\.\d+/
|
||||
feature = parts.join('-')
|
||||
{ user: user, standard: standard, feature: feature }
|
||||
end
|
||||
|
||||
@@ -44,7 +44,7 @@ module Shared
|
||||
end
|
||||
|
||||
def git_local_list_tags
|
||||
`git tag -l 'v*'`.strip.split(/\s+/)
|
||||
`git tag -l 'v*'`.strip.split(/\s+/).sort
|
||||
end
|
||||
|
||||
def git_prune
|
||||
@@ -71,8 +71,8 @@ module Shared
|
||||
run_cmd "git rebase #{branch}"
|
||||
end
|
||||
|
||||
def git_local_branch_create (branch)
|
||||
run_cmd "git checkout -b #{branch}"
|
||||
def git_local_branch_create (branch, commit='')
|
||||
run_cmd "git checkout -b #{branch} #{commit}"
|
||||
end
|
||||
|
||||
def git_commit (message, force = false)
|
||||
|
||||
Reference in New Issue
Block a user