Module: GitWorkflow::Callbacks::Styles::Sanger::FinishBehaviour

Defined in:
lib/git_workflow/callbacks/styles/sanger.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



29
30
31
32
33
34
35
# File 'lib/git_workflow/callbacks/styles/sanger.rb', line 29

def self.included(base)
  base.instance_eval do
    include GitWorkflow::Callbacks::PivotalTrackerSupport
    include GitWorkflow::Callbacks::TestCodeSupport
    include GitWorkflow::Callbacks::RemoteGitBranchSupport
  end
end

Instance Method Details

#finish(story, branch_name) ⇒ Object



37
38
39
40
41
42
43
# File 'lib/git_workflow/callbacks/styles/sanger.rb', line 37

def finish(story, branch_name)
  in_git_branch(story.branch_name) do
    run_tests!(:test, :features)
    push_current_branch_to(story.remote_branch_name)
    story.comment("Fixed on #{ story.remote_branch_name }. Needs merging into master")
  end
end