qa_release_tasks 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/git/wiki.rb +18 -2
- data/lib/qa_release_tasks.rb +1 -1
- metadata +4 -4
data/lib/git/wiki.rb
CHANGED
@@ -45,12 +45,28 @@ module Git
|
|
45
45
|
subject = subject + ' [REVERT]'
|
46
46
|
end
|
47
47
|
pivotal.split('/').each do |p|
|
48
|
-
stories[p.to_i][commit] = { :pair => pair, :message => subject.gsub("\"", '').strip }
|
48
|
+
stories[p.to_i][commit] = { :pair => pair, :message => subject.gsub("\"", '').strip }
|
49
49
|
end
|
50
50
|
else
|
51
51
|
stories[0][log_line] = {:pair => '', :message => log_line}
|
52
52
|
end
|
53
53
|
end
|
54
|
+
deploy_log = `git log --no-merges --pretty=format:"%h %s" #{range} config Capfile`.strip.split("\n")
|
55
|
+
project_name = `pwd`.chomp.split('/').last
|
56
|
+
deploy_log.each do |log_line|
|
57
|
+
# (commit, pair, pivotal, subject) = log_line.split(/\s+/, 4)
|
58
|
+
#[(.+?)]\s*[(\d+)](.+)
|
59
|
+
(match, commit, pair, pivotal, subject) = *log_line.match(/(.+?)\s*\[([a-zA-Z\/]{2,})\]\s*\[\#?([\d\/]+)\](.*)/)
|
60
|
+
if match
|
61
|
+
commit.gsub!(/\s*Revert.*/, '')
|
62
|
+
pivotal.split('/').each do |p|
|
63
|
+
stories[p.to_i][commit].merge!({:red => true})
|
64
|
+
end
|
65
|
+
else
|
66
|
+
stories[0][commit].merge!({:red => true})
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
54
70
|
|
55
71
|
table_start
|
56
72
|
Struct.new("UnknownStory", :id, :name, :story_type, :url)
|
@@ -61,7 +77,7 @@ module Git
|
|
61
77
|
row += story.url ? "[#{story.url} #{story.id}]" : "#{story.id}"
|
62
78
|
row += "\n| #{story.name}\n| #{story.story_type.capitalize}\n|\n{|\n"
|
63
79
|
commits.each do |commit, details|
|
64
|
-
row += "
|
80
|
+
row += "|-#{'style="background-color:#ffcccc;"' if details[:red]}\n| [http://github.com/primedia/#{project_name}/commit/#{commit} #{commit}]\n| #{details[:pair]}\n| #{details[:message]}\n"
|
65
81
|
end
|
66
82
|
row += "|}"
|
67
83
|
|
data/lib/qa_release_tasks.rb
CHANGED
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 1
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 1.
|
7
|
+
- 3
|
8
|
+
- 0
|
9
|
+
version: 1.3.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jason Noble
|
@@ -15,7 +15,7 @@ autorequire: qa_release_tasks
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-07-20 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|