gplan 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/gplan +3 -3
- data/lib/printer.rb +1 -1
- data/templates/template.html.haml +5 -7
- metadata +2 -2
data/bin/gplan
CHANGED
@@ -55,14 +55,14 @@ def pull_dependency(story)
|
|
55
55
|
|
56
56
|
# find dependency based on blocks
|
57
57
|
story['blocks'].each do |block|
|
58
|
-
if block.match(/((
|
59
|
-
return
|
58
|
+
if block.match(/(^(#+|\s+)?dependen(t|cy|cies|cys))/i)
|
59
|
+
return block
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
63
|
# else find dependency based on labels
|
64
64
|
if story['labels'].to_s.match /Has Dependency/i
|
65
|
-
return "
|
65
|
+
return "has a dependency label"
|
66
66
|
end
|
67
67
|
return nil
|
68
68
|
end
|
data/lib/printer.rb
CHANGED
@@ -22,7 +22,7 @@ module Printer
|
|
22
22
|
end
|
23
23
|
|
24
24
|
dependency = pull_dependency(story)
|
25
|
-
dependencies << dependency unless dependency.nil?
|
25
|
+
dependencies << "PR ##{story['number']}: " + dependency unless dependency.nil?
|
26
26
|
|
27
27
|
line = ""
|
28
28
|
line += planbox_info story unless end_of_pbs
|
@@ -23,10 +23,9 @@
|
|
23
23
|
%td
|
24
24
|
%a{href: story['html_url']}= story['number']
|
25
25
|
%td= story['title']
|
26
|
-
-
|
27
|
-
-
|
28
|
-
|
29
|
-
%td= block
|
26
|
+
- block = pull_dependency(story)
|
27
|
+
- next if block.nil?
|
28
|
+
%td= block
|
30
29
|
|
31
30
|
%h2 Unmatched PRs
|
32
31
|
%table{:border => "1"}
|
@@ -51,7 +50,6 @@
|
|
51
50
|
%td
|
52
51
|
%a{href: issue['html_url']}= issue['number']
|
53
52
|
%td= issue['milestone']['title'] if issue['milestone']
|
54
|
-
|
55
|
-
|
56
|
-
- next unless block.match(/((^|\W)dependen(t|cy|cies|cys))/i)
|
53
|
+
- block = pull_dependency(story)
|
54
|
+
- next if block.nil?
|
57
55
|
%td= block
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gplan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-03-
|
12
|
+
date: 2015-03-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|