2-start: renamed init to create, renamed versions to list, closed
This commit is contained in:
@@ -28,7 +28,11 @@ module Shared
|
||||
def release_tag_prefix
|
||||
'v'
|
||||
end
|
||||
|
||||
|
||||
def release_branch_prefix
|
||||
'rc'
|
||||
end
|
||||
|
||||
def release_tag_from_version (version)
|
||||
"v#{version}"
|
||||
end
|
||||
|
||||
@@ -47,6 +47,10 @@ module Shared
|
||||
`git tag -l '#{release_tag_prefix}*'`.strip.split(/\s+/).sort
|
||||
end
|
||||
|
||||
def git_local_list_branches (release_branch_prefix)
|
||||
`git branch -a|grep 'remotes/origin/rc'`.strip.split(/\s+/).map {|x| x.sub('remotes/origin/','')}.sort
|
||||
end
|
||||
|
||||
def git_prune
|
||||
run_cmd "git remote prune origin"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user