Module: RoboPigeon::Dsl::Helpers::Git

Included in:
RoboPigeon::Dsl::Helpers
Defined in:
lib/robopigeon/git/helper_dsl.rb

Instance Method Summary collapse

Instance Method Details

#changed_since?(ref, *files) ⇒ Boolean

Returns:

  • (Boolean)


43
44
45
# File 'lib/robopigeon/git/helper_dsl.rb', line 43

def changed_since?(ref, *files)
  `git diff #{ref} -- #{files.join(' ')}`
end

#git_branch_merged_sourceObject



25
26
27
# File 'lib/robopigeon/git/helper_dsl.rb', line 25

def git_branch_merged_source
  get_merge_data[:source]
end

#git_branch_merged_targetObject



30
31
32
# File 'lib/robopigeon/git/helper_dsl.rb', line 30

def git_branch_merged_target
  get_merge_data[:target]
end

#git_committer_emailObject



10
11
12
# File 'lib/robopigeon/git/helper_dsl.rb', line 10

def git_committer_email
  `git log -1 --pretty=format:'%ae' --no-merges`
end

#git_committer_nameObject



5
6
7
# File 'lib/robopigeon/git/helper_dsl.rb', line 5

def git_committer_name
  `git log -1 --pretty=format:'%an' --no-merges`
end

#git_merger_emailObject



20
21
22
# File 'lib/robopigeon/git/helper_dsl.rb', line 20

def git_merger_email
  `git log -1 --pretty=format:'%ae' --merges`
end

#git_merger_nameObject



15
16
17
# File 'lib/robopigeon/git/helper_dsl.rb', line 15

def git_merger_name
  `git log -1 --pretty=format:'%an' --merges`
end