diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/task_helpers.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/task_helpers.rb b/lib/task_helpers.rb index b3be0010..be79af49 100644 --- a/lib/task_helpers.rb +++ b/lib/task_helpers.rb @@ -51,6 +51,11 @@ def git_workdir_dirty? !status.empty? end +def local_branch_exist?(branch) + status = `git branch --list #{branch}` + !status.empty? +end + def chart_version_added?(gitlab_version) config = YAML.load_file('./content/_data/chart_versions.yaml') config.key?(gitlab_version) |