lazylead 0.6.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +7 -2
- data/.docker/Dockerfile +17 -6
- data/.docs/duedate_expired.md +1 -1
- data/.rubocop.yml +119 -3
- data/.simplecov +1 -1
- data/Gemfile +1 -1
- data/Guardfile +2 -2
- data/Rakefile +7 -4
- data/bin/lazylead +4 -2
- data/lazylead.gemspec +33 -29
- data/lib/lazylead.rb +2 -2
- data/lib/lazylead/allocated.rb +1 -1
- data/lib/lazylead/cc.rb +22 -21
- data/lib/lazylead/cli/app.rb +3 -3
- data/lib/lazylead/confluence.rb +10 -3
- data/lib/lazylead/email.rb +1 -21
- data/lib/lazylead/exchange.rb +17 -29
- data/lib/lazylead/home.rb +1 -1
- data/lib/lazylead/log.rb +1 -1
- data/lib/lazylead/model.rb +25 -17
- data/lib/lazylead/opts.rb +68 -3
- data/lib/lazylead/postman.rb +14 -19
- data/lib/lazylead/requires.rb +38 -0
- data/lib/lazylead/salt.rb +2 -1
- data/lib/lazylead/schedule.rb +1 -1
- data/lib/lazylead/smtp.rb +1 -1
- data/lib/lazylead/system/empty.rb +1 -1
- data/lib/lazylead/system/fake.rb +1 -1
- data/lib/lazylead/system/jira.rb +28 -20
- data/lib/lazylead/system/synced.rb +1 -1
- data/lib/lazylead/task/accuracy/accuracy.rb +23 -30
- data/lib/lazylead/task/accuracy/affected_build.rb +1 -1
- data/lib/lazylead/task/accuracy/attachment.rb +3 -7
- data/lib/lazylead/task/accuracy/environment.rb +1 -1
- data/lib/lazylead/task/accuracy/logs.rb +10 -5
- data/lib/lazylead/task/accuracy/onlyll.rb +147 -0
- data/lib/lazylead/task/accuracy/records.rb +2 -2
- data/lib/lazylead/task/accuracy/requirement.rb +1 -1
- data/lib/lazylead/task/accuracy/servers.rb +17 -8
- data/lib/lazylead/task/accuracy/stacktrace.rb +2 -2
- data/lib/lazylead/task/accuracy/testcase.rb +3 -3
- data/lib/lazylead/task/accuracy/wiki.rb +1 -1
- data/lib/lazylead/task/{alert.rb → alert/alert.rb} +6 -6
- data/lib/lazylead/task/alert/alertif.rb +75 -0
- data/lib/lazylead/task/alert/changed_to.rb +58 -0
- data/lib/lazylead/task/assignment.rb +1 -1
- data/lib/lazylead/task/confluence_ref.rb +1 -1
- data/lib/lazylead/task/echo.rb +1 -1
- data/lib/lazylead/task/fix_version.rb +5 -3
- data/lib/lazylead/task/loading.rb +94 -0
- data/lib/lazylead/task/missing_comment.rb +1 -1
- data/lib/lazylead/task/propagate_down.rb +4 -4
- data/lib/lazylead/task/savepoint.rb +1 -1
- data/lib/lazylead/task/svn/diff.rb +6 -14
- data/lib/lazylead/task/svn/grep.rb +41 -13
- data/lib/lazylead/task/svn/touch.rb +3 -5
- data/lib/lazylead/version.rb +2 -2
- data/lib/messages/accuracy.erb +1 -1
- data/lib/messages/alertif.erb +134 -0
- data/lib/messages/created_recently.erb +110 -0
- data/lib/messages/illegal_fixversion_change.erb +8 -2
- data/lib/messages/loading.erb +117 -0
- data/lib/messages/only_ll.erb +107 -0
- data/lib/messages/svn_diff_attachment.erb +18 -8
- data/lib/messages/svn_grep.erb +1 -1
- data/readme.md +3 -3
- data/test/lazylead/allocated_test.rb +1 -1
- data/test/lazylead/cc_test.rb +2 -1
- data/test/lazylead/cli/app_test.rb +2 -2
- data/test/lazylead/confluence_test.rb +1 -1
- data/test/lazylead/exchange_test.rb +1 -1
- data/test/lazylead/model_test.rb +11 -1
- data/test/lazylead/opts_test.rb +48 -1
- data/test/lazylead/postman_test.rb +9 -6
- data/test/lazylead/salt_test.rb +1 -1
- data/test/lazylead/smoke_test.rb +14 -1
- data/test/lazylead/smtp_test.rb +2 -5
- data/test/lazylead/system/jira_test.rb +10 -1
- data/test/lazylead/task/accuracy/accuracy_test.rb +1 -1
- data/test/lazylead/task/accuracy/affected_build_test.rb +1 -1
- data/test/lazylead/task/accuracy/attachment_test.rb +2 -2
- data/test/lazylead/task/accuracy/environment_test.rb +1 -1
- data/test/lazylead/task/accuracy/logs_test.rb +13 -1
- data/test/lazylead/task/accuracy/onlyll_test.rb +138 -0
- data/test/lazylead/task/accuracy/records_test.rb +1 -1
- data/test/lazylead/task/accuracy/score_test.rb +2 -2
- data/test/lazylead/task/accuracy/servers_test.rb +3 -3
- data/test/lazylead/task/accuracy/stacktrace_test.rb +1 -1
- data/test/lazylead/task/accuracy/testcase_test.rb +28 -1
- data/test/lazylead/task/accuracy/wiki_test.rb +1 -1
- data/test/lazylead/task/alert/alertif_test.rb +54 -0
- data/test/lazylead/task/{assignee_alert_test.rb → alert/assignee_alert_test.rb} +10 -10
- data/test/lazylead/task/alert/changed_to_test.rb +42 -0
- data/test/lazylead/task/assignment_test.rb +1 -1
- data/test/lazylead/task/confluence_ref_test.rb +1 -1
- data/test/lazylead/task/created_recently_test.rb +53 -0
- data/test/lazylead/task/duedate_test.rb +5 -12
- data/test/lazylead/task/echo_test.rb +1 -1
- data/test/lazylead/task/fix_version_test.rb +2 -1
- data/test/lazylead/task/loading_test.rb +54 -0
- data/test/lazylead/task/missing_comment_test.rb +1 -1
- data/test/lazylead/task/propagate_down_test.rb +5 -4
- data/test/lazylead/task/savepoint_test.rb +10 -7
- data/test/lazylead/task/svn/diff_test.rb +1 -1
- data/test/lazylead/task/svn/grep_test.rb +44 -2
- data/test/lazylead/task/svn/touch_test.rb +1 -1
- data/test/lazylead/version_test.rb +1 -1
- data/test/sqlite_test.rb +1 -1
- data/test/test.rb +8 -9
- data/upgrades/sqlite/001-install-main-lazylead-tables.sql +1 -1
- data/upgrades/sqlite/999.testdata.sql +3 -2
- metadata +133 -58
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# The MIT License
|
4
4
|
#
|
5
|
-
# Copyright (c) 2019-
|
5
|
+
# Copyright (c) 2019-2021 Yurii Dubinka
|
6
6
|
#
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
8
|
# of this software and associated documentation files (the "Software"),
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# The MIT License
|
4
4
|
#
|
5
|
-
# Copyright (c) 2019-
|
5
|
+
# Copyright (c) 2019-2021 Yurii Dubinka
|
6
6
|
#
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
8
|
# of this software and associated documentation files (the "Software"),
|
@@ -49,36 +49,28 @@ module Lazylead
|
|
49
49
|
"-r#{opts['since_rev']}:HEAD #{opts['svn_url']}"
|
50
50
|
]
|
51
51
|
stdout = `#{cmd.join(" ")}`
|
52
|
-
send_email
|
52
|
+
send_email postman, opts.merge(stdout: stdout) unless stdout.blank?
|
53
53
|
end
|
54
54
|
|
55
55
|
# Send email with svn log as an attachment.
|
56
56
|
# The attachment won't be stored locally and we'll be removed once
|
57
57
|
# mail sent.
|
58
|
-
def send_email(
|
58
|
+
def send_email(postman, opts)
|
59
59
|
Dir.mktmpdir do |dir|
|
60
60
|
name = "svn-log-#{Date.today.strftime('%d-%b-%Y')}.html"
|
61
61
|
f = File.open(File.join(dir, name), "w")
|
62
62
|
begin
|
63
|
-
f.write
|
63
|
+
f.write opts.msg_body("template-attachment")
|
64
64
|
f.close
|
65
|
-
postman.send opts.merge(
|
65
|
+
postman.send opts.merge(attachments: [f.path])
|
66
66
|
ensure
|
67
67
|
File.delete(f)
|
68
68
|
end
|
69
69
|
rescue StandardError => e
|
70
70
|
@log.error "ll-010: Can't send an email for #{opts} due to " \
|
71
|
-
"#{Backtrace.new(e)}'
|
71
|
+
"#{Backtrace.new(e)}'"
|
72
72
|
end
|
73
73
|
end
|
74
|
-
|
75
|
-
# Assemble HTML for attachment based on SVN output
|
76
|
-
def make_attachment(stdout, opts)
|
77
|
-
Email.new(
|
78
|
-
opts["template-attachment"],
|
79
|
-
opts.merge(stdout: stdout, version: Lazylead::VERSION)
|
80
|
-
).render
|
81
|
-
end
|
82
74
|
end
|
83
75
|
end
|
84
76
|
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# The MIT License
|
4
4
|
#
|
5
|
-
# Copyright (c) 2019-
|
5
|
+
# Copyright (c) 2019-2021 Yurii Dubinka
|
6
6
|
#
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
8
|
# of this software and associated documentation files (the "Software"),
|
@@ -47,21 +47,28 @@ module Lazylead
|
|
47
47
|
|
48
48
|
# Return all svn commits for particular date range in repo
|
49
49
|
def svn_log(opts)
|
50
|
-
now = if opts.key? "now"
|
51
|
-
DateTime.parse(opts["now"])
|
52
|
-
else
|
53
|
-
DateTime.now
|
54
|
-
end
|
55
|
-
start = (now.to_time - opts["period"].to_i).to_datetime
|
56
50
|
cmd = [
|
57
51
|
"svn log --diff --no-auth-cache",
|
58
52
|
"--username #{opts.decrypt('svn_user', 'svn_salt')}",
|
59
53
|
"--password #{opts.decrypt('svn_password', 'svn_salt')}",
|
60
|
-
"-r {#{
|
54
|
+
"-r {#{from(opts)}}:{#{now(opts)}} #{opts['svn_url']}"
|
61
55
|
]
|
62
56
|
stdout = `#{cmd.join(" ")}`
|
63
|
-
stdout.split("-" * 72).reject(&:blank?).reverse
|
64
|
-
|
57
|
+
stdout.split("-" * 72).reject(&:blank?).reverse.map { |e| Entry.new(e) }
|
58
|
+
end
|
59
|
+
|
60
|
+
# The start date & time for search range
|
61
|
+
def from(opts)
|
62
|
+
(now(opts).to_time - opts["period"].to_i).to_datetime
|
63
|
+
end
|
64
|
+
|
65
|
+
# The current date & time for search range
|
66
|
+
def now(opts)
|
67
|
+
if opts.key? "now"
|
68
|
+
DateTime.parse(opts["now"])
|
69
|
+
else
|
70
|
+
DateTime.now
|
71
|
+
end
|
65
72
|
end
|
66
73
|
end
|
67
74
|
end
|
@@ -78,7 +85,7 @@ module Lazylead
|
|
78
85
|
end
|
79
86
|
|
80
87
|
def rev
|
81
|
-
header.first
|
88
|
+
header.first[1..]
|
82
89
|
end
|
83
90
|
|
84
91
|
def author
|
@@ -96,8 +103,8 @@ module Lazylead
|
|
96
103
|
# The modified lines contains expected text
|
97
104
|
def includes?(text)
|
98
105
|
text = [text] unless text.respond_to? :each
|
99
|
-
lines[4
|
100
|
-
|
106
|
+
lines[4..].select { |l| l.start_with? "+" }
|
107
|
+
.any? { |l| text.any? { |t| l.include? t } }
|
101
108
|
end
|
102
109
|
|
103
110
|
def lines
|
@@ -107,5 +114,26 @@ module Lazylead
|
|
107
114
|
def header
|
108
115
|
@header ||= lines.first.split(" | ").reject(&:blank?)
|
109
116
|
end
|
117
|
+
|
118
|
+
# Detect SVN diff lines with particular text
|
119
|
+
def diff(text)
|
120
|
+
@diff ||= begin
|
121
|
+
files = affected(text).uniq
|
122
|
+
@commit.split("Index: ")
|
123
|
+
.select { |i| files.any? { |f| i.start_with? f } }
|
124
|
+
.map { |i| i.split "\n" }
|
125
|
+
.flatten
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
# Detect affected files with particular text
|
130
|
+
def affected(text)
|
131
|
+
occurrences = lines.each_index.select do |i|
|
132
|
+
lines[i].start_with?("+") && text.any? { |t| lines[i].include? t }
|
133
|
+
end
|
134
|
+
occurrences.map do |occ|
|
135
|
+
lines[2..occ].reverse.find { |l| l.start_with? "Index: " }[7..]
|
136
|
+
end
|
137
|
+
end
|
110
138
|
end
|
111
139
|
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# The MIT License
|
4
4
|
#
|
5
|
-
# Copyright (c) 2019-
|
5
|
+
# Copyright (c) 2019-2021 Yurii Dubinka
|
6
6
|
#
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
8
|
# of this software and associated documentation files (the "Software"),
|
@@ -50,11 +50,9 @@ module Lazylead
|
|
50
50
|
def touch(files, opts)
|
51
51
|
xpath = files.map { |f| "contains(text(),\"#{f}\")" }.join(" or ")
|
52
52
|
svn_log(opts).xpath("//logentry[paths/path[#{xpath}]]")
|
53
|
-
.map(
|
53
|
+
.map { |xml| to_entry(xml) }
|
54
54
|
.each do |e|
|
55
|
-
if e.paths.path.respond_to? :delete_if
|
56
|
-
e.paths.path.delete_if { |p| files.none? { |f| p.include? f } }
|
57
|
-
end
|
55
|
+
e.paths.path.delete_if { |p| files.none? { |f| p.include? f } } if e.paths.path.respond_to? :delete_if
|
58
56
|
end
|
59
57
|
end
|
60
58
|
|
data/lib/lazylead/version.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# The MIT License
|
4
4
|
#
|
5
|
-
# Copyright (c) 2019-
|
5
|
+
# Copyright (c) 2019-2021 Yurii Dubinka
|
6
6
|
#
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
8
|
# of this software and associated documentation files (the "Software"),
|
@@ -23,5 +23,5 @@
|
|
23
23
|
# OR OTHER DEALINGS IN THE SOFTWARE.
|
24
24
|
|
25
25
|
module Lazylead
|
26
|
-
VERSION = "0.
|
26
|
+
VERSION = "0.8.0"
|
27
27
|
end
|
data/lib/messages/accuracy.erb
CHANGED
@@ -73,7 +73,7 @@
|
|
73
73
|
</head>
|
74
74
|
<body>
|
75
75
|
<p>Hi,</p>
|
76
|
-
<p>The triage score and accuracy posted to the following tickets
|
76
|
+
<p>The triage score and accuracy posted to the following tickets:</p>
|
77
77
|
<table summary="table with tickets triage score">
|
78
78
|
<tr>
|
79
79
|
<th id="key">Key</th>
|
@@ -0,0 +1,134 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<style> /* CSS styles taken from https://github.com/yegor256/tacit */
|
5
|
+
th {
|
6
|
+
font-weight: 600
|
7
|
+
}
|
8
|
+
|
9
|
+
table tr {
|
10
|
+
border-bottom-width: 2.16px
|
11
|
+
}
|
12
|
+
|
13
|
+
table tr th {
|
14
|
+
border-bottom-width: 2.16px
|
15
|
+
}
|
16
|
+
|
17
|
+
table tr td, table tr th {
|
18
|
+
overflow: hidden;
|
19
|
+
padding: 5.4px 3.6px;
|
20
|
+
line-height: 20px;
|
21
|
+
}
|
22
|
+
|
23
|
+
#summary, #labels {
|
24
|
+
text-align: left;
|
25
|
+
}
|
26
|
+
|
27
|
+
.auto {
|
28
|
+
min-width: auto;
|
29
|
+
white-space: nowrap;
|
30
|
+
}
|
31
|
+
|
32
|
+
a {
|
33
|
+
color: #275a90;
|
34
|
+
text-decoration: none
|
35
|
+
}
|
36
|
+
|
37
|
+
a:hover {
|
38
|
+
text-decoration: underline
|
39
|
+
}
|
40
|
+
|
41
|
+
* {
|
42
|
+
border: 0;
|
43
|
+
border-collapse: separate;
|
44
|
+
border-spacing: 0;
|
45
|
+
box-sizing: border-box;
|
46
|
+
margin: 0;
|
47
|
+
max-width: 100%;
|
48
|
+
padding: 0;
|
49
|
+
vertical-align: baseline;
|
50
|
+
font-family: system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
51
|
+
font-size: 13px;
|
52
|
+
font-stretch: normal;
|
53
|
+
font-style: normal;
|
54
|
+
font-weight: 400;
|
55
|
+
}
|
56
|
+
|
57
|
+
html, body {
|
58
|
+
width: 100%
|
59
|
+
}
|
60
|
+
|
61
|
+
html {
|
62
|
+
height: 100%
|
63
|
+
}
|
64
|
+
|
65
|
+
body {
|
66
|
+
background: #fff;
|
67
|
+
color: #1a1919;
|
68
|
+
padding: 36px
|
69
|
+
}
|
70
|
+
|
71
|
+
code {
|
72
|
+
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
73
|
+
font-size: 12px;
|
74
|
+
border: 0;
|
75
|
+
background: #f2f2d9;
|
76
|
+
border-radius: 3.6px;
|
77
|
+
display: inline-block;
|
78
|
+
line-height: 18px;
|
79
|
+
padding: 3.6px 6.3px 2.7px
|
80
|
+
}
|
81
|
+
</style>
|
82
|
+
<title>Alert If</title>
|
83
|
+
</head>
|
84
|
+
<body>
|
85
|
+
<table summary="tickets">
|
86
|
+
<tr>
|
87
|
+
<th id="key">Key</th>
|
88
|
+
<th id="priority">Priority</th>
|
89
|
+
<th id="status">Last status</th>
|
90
|
+
<th id="duedate">Due date</th>
|
91
|
+
<th id="reporter">Reporter</th>
|
92
|
+
<th id="assignee">Assignee</th>
|
93
|
+
<th id="summary">Summary</th>
|
94
|
+
<th id="comment">Last Comment</th>
|
95
|
+
</tr>
|
96
|
+
<% tickets.sort_by { |t| t.fields["priority"]["id"].to_i }.each do |t| %>
|
97
|
+
<tr>
|
98
|
+
<td>
|
99
|
+
<div class="auto">
|
100
|
+
<a href="<%= t.url %>"><%= t.key %></a>
|
101
|
+
</div>
|
102
|
+
</td>
|
103
|
+
<td><%= t.priority %></td>
|
104
|
+
<td><%= t.status %></td>
|
105
|
+
<td>
|
106
|
+
<div class="auto"><%= t.duedate %></div>
|
107
|
+
</td>
|
108
|
+
<td>
|
109
|
+
<div class="auto">
|
110
|
+
<%= t.reporter.name %>
|
111
|
+
</div>
|
112
|
+
</td>
|
113
|
+
<td>
|
114
|
+
<div class="auto">
|
115
|
+
<%= t.assignee.name %>
|
116
|
+
</div>
|
117
|
+
</td>
|
118
|
+
<td><%= t.summary %></td>
|
119
|
+
<td>
|
120
|
+
<div>
|
121
|
+
By <span style="font-weight: bold"><%= t.last.author %></span>:<br/>
|
122
|
+
<code>
|
123
|
+
<%= t.last.lines.size == 1 ? t.last.lines.first : t.last.lines.map { |l| l.gsub("<", "<") }.join("<br>") %>
|
124
|
+
</code>
|
125
|
+
</div>
|
126
|
+
</td>
|
127
|
+
</tr>
|
128
|
+
<% end %>
|
129
|
+
</table>
|
130
|
+
<p>Posted by
|
131
|
+
<a href="https://github.com/dgroup/lazylead">lazylead v<%= version %></a>.
|
132
|
+
</p>
|
133
|
+
</body>
|
134
|
+
</html>
|
@@ -0,0 +1,110 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<style> /* CSS styles taken from https://github.com/yegor256/tacit */
|
5
|
+
th {
|
6
|
+
font-weight: 600
|
7
|
+
}
|
8
|
+
|
9
|
+
table tr {
|
10
|
+
border-bottom-width: 2.16px
|
11
|
+
}
|
12
|
+
|
13
|
+
table tr th {
|
14
|
+
border-bottom-width: 2.16px
|
15
|
+
}
|
16
|
+
|
17
|
+
table tr td, table tr th {
|
18
|
+
overflow: hidden;
|
19
|
+
padding: 5.4px 3.6px;
|
20
|
+
line-height: 20px;
|
21
|
+
}
|
22
|
+
|
23
|
+
#summary, #labels {
|
24
|
+
text-align: left;
|
25
|
+
}
|
26
|
+
|
27
|
+
.auto {
|
28
|
+
min-width: auto;
|
29
|
+
white-space: nowrap;
|
30
|
+
}
|
31
|
+
|
32
|
+
a {
|
33
|
+
color: #275a90;
|
34
|
+
text-decoration: none
|
35
|
+
}
|
36
|
+
|
37
|
+
a:hover {
|
38
|
+
text-decoration: underline
|
39
|
+
}
|
40
|
+
|
41
|
+
* {
|
42
|
+
border: 0;
|
43
|
+
border-collapse: separate;
|
44
|
+
border-spacing: 0;
|
45
|
+
box-sizing: border-box;
|
46
|
+
margin: 0;
|
47
|
+
max-width: 100%;
|
48
|
+
padding: 0;
|
49
|
+
vertical-align: baseline;
|
50
|
+
font-family: system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
51
|
+
font-size: 13px;
|
52
|
+
font-stretch: normal;
|
53
|
+
font-style: normal;
|
54
|
+
font-weight: 400;
|
55
|
+
}
|
56
|
+
|
57
|
+
html, body {
|
58
|
+
width: 100%
|
59
|
+
}
|
60
|
+
|
61
|
+
html {
|
62
|
+
height: 100%
|
63
|
+
}
|
64
|
+
|
65
|
+
body {
|
66
|
+
background: #fff;
|
67
|
+
color: #1a1919;
|
68
|
+
padding: 36px
|
69
|
+
}
|
70
|
+
</style>
|
71
|
+
<title>Created recently</title>
|
72
|
+
</head>
|
73
|
+
<body>
|
74
|
+
<p>Hi,</p>
|
75
|
+
<p>The followed tickets created recently:</p>
|
76
|
+
<table summary="recent tickets">
|
77
|
+
<tr>
|
78
|
+
<th id="key">Key</th>
|
79
|
+
<th id="duedate">Due date</th>
|
80
|
+
<th id="priority">Priority</th>
|
81
|
+
<th id="reporter">Reporter</th>
|
82
|
+
<th id="summary">Summary</th>
|
83
|
+
<th id="labels">Labels</th>
|
84
|
+
</tr>
|
85
|
+
<% tickets.sort_by { |s| s.fields["priority"]["id"].to_i }.each do |t| %>
|
86
|
+
<tr>
|
87
|
+
<td>
|
88
|
+
<div class="auto">
|
89
|
+
<a href="<%= t.url %>"><%= t.key %></a>
|
90
|
+
</div>
|
91
|
+
</td>
|
92
|
+
<td>
|
93
|
+
<div class="auto"><%= t.duedate %></div>
|
94
|
+
</td>
|
95
|
+
<td><%= t.priority %></td>
|
96
|
+
<td>
|
97
|
+
<div class="auto">
|
98
|
+
<%= t.reporter.name %>
|
99
|
+
</div>
|
100
|
+
</td>
|
101
|
+
<td><%= t.summary %></td>
|
102
|
+
<td><%= t.labels.join ", " %></td>
|
103
|
+
</tr>
|
104
|
+
<% end %>
|
105
|
+
</table>
|
106
|
+
<p>Posted by
|
107
|
+
<a href="https://github.com/dgroup/lazylead">lazylead v<%= version %></a>.
|
108
|
+
</p>
|
109
|
+
</body>
|
110
|
+
</html>
|