Module: RoboPigeon::Dsl::Helpers::Git
- Included in:
- RoboPigeon::Dsl::Helpers
- Defined in:
- lib/robopigeon/git/helper_dsl.rb
Instance Method Summary collapse
- #changed_since?(ref, *files) ⇒ Boolean
- #git_branch_merged_source ⇒ Object
- #git_branch_merged_target ⇒ Object
- #git_committer_email ⇒ Object
- #git_committer_name ⇒ Object
- #git_merger_email ⇒ Object
- #git_merger_name ⇒ Object
Instance Method Details
#changed_since?(ref, *files) ⇒ 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_source ⇒ Object
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_target ⇒ Object
30 31 32 |
# File 'lib/robopigeon/git/helper_dsl.rb', line 30 def git_branch_merged_target get_merge_data[:target] end |
#git_committer_email ⇒ Object
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_name ⇒ Object
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_email ⇒ Object
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_name ⇒ Object
15 16 17 |
# File 'lib/robopigeon/git/helper_dsl.rb', line 15 def git_merger_name `git log -1 --pretty=format:'%an' --merges` end |