19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# File 'lib/committer-tools.rb', line 19
def run(github_pr, metadata)
check_to_land(github_pr, metadata)
introduce_commit(github_pr, metadata)
puts "[\u{2714}] Commit(s) applied locally. Please update to your liking, and then type 'lgtm'."
if ENV['BOT'] && ENV['BOT'] == 'bot'
lgtm = "lgtm"
else
lgtm = gets.strip!
while !lgtm do
sleep
end
end
if lgtm && lgtm == 'lgtm'
add_metadata_to_commit(metadata)
validate_commit
puts "\n[\u{2714}] Landed in #{`git rev-list upstream/master...HEAD`} -- committer-tools is done! Edit away to your content, and then push away :)"
end
end
|