Class: PullReview::Coverage::Git

Inherits:
Object
  • Object
show all
Defined in:
lib/pullreview/coverage/git.rb

Overview

Fetch git infos

Instance Method Summary collapse

Instance Method Details

#infosObject

return hash with head,

head: all commit information
   sha, author, committer, message, committed_at
remotes: list of git urls (name url)
committed_at: commit time(as UNIX timestamp)
branch: name of the branch.


11
12
13
14
15
16
17
# File 'lib/pullreview/coverage/git.rb', line 11

def infos
  {
    head: last_commit,
    remotes: remotes,
    branch: branch_from_git_or_continuous_build
  }
end