Class: TrackerGitHook::CommitMsg

Inherits:
Object
  • Object
show all
Defined in:
lib/tracker_git_hook/commit_msg.rb

Instance Method Summary collapse

Instance Method Details

#run(message_file_path:) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/tracker_git_hook/commit_msg.rb', line 6

def run(message_file_path:)
  message = File.read(message_file_path)

  repo = Repo.discover(path: Dir.pwd)

  StoryStatusChecker.new(repo: repo).check(message)
end