Skip to content

Commit

Permalink
again
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoHinderling committed Dec 10, 2024
1 parent 65db87d commit 2999c97
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,20 @@ platform :ios do
puts "Parents:"
puts g.log[0].parents.inspect if g.log[0].respond_to?(:parents)

g.log.first(3).each_with_index do |commit, index|
puts "#{index}: #{commit.sha} - #{commit.message&.lines&.first}"
puts "Latest 3 commits in log:"
count = 0
g.log.each do |commit|
puts "#{count}: #{commit.sha} - #{commit.message}"
count += 1
break if count >= 3
end

puts "\nLatest commit details:"
puts "SHA: #{latest_commit.sha}"
puts "Message: #{latest_commit.message}"
puts "Parent count: #{latest_commit.parents.length if latest_commit.respond_to?(:parents)}"


# if latest_commit.parents.length > 1
# # For merge commits
# head_sha = latest_commit.parents[1].sha
Expand Down

0 comments on commit 2999c97

Please sign in to comment.