Unverified Commit d2d881fd authored by Robert Speicher's avatar Robert Speicher Committed by John Skarbek

Add AutoDeployBranch class

parent f71b75f9
......@@ -33,6 +33,7 @@ Dotenv.load
$LOAD_PATH.unshift(__dir__)
require 'release_tools/auto_deploy/naming'
require 'release_tools/auto_deploy_branch'
require 'release_tools/branch'
require 'release_tools/branch_creation'
require 'release_tools/version'
......
# frozen_string_literal: true
module ReleaseTools
# Represents an auto-deploy branch for purposes of cherry-picking
class AutoDeployBranch
attr_reader :version
attr_reader :branch_name
def initialize(version, branch_name)
@version = version
@branch_name = branch_name
end
def exists?
true
end
# Included in cherry-pick summary messages
def pick_destination
"`#{branch_name}`"
end
def release_issue
MonthlyIssue.new(version: version)
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment