Skip to content

Commit

Permalink
#246: FixVersion task should mention the new value
Browse files Browse the repository at this point in the history
Fixed #246
  • Loading branch information
dgroup committed Nov 8, 2020
1 parent 19761aa commit cc846ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/lazylead/task/fix_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ def last
def add_label
@issue.add_label("LL.IllegalChangeOfFixVersion") unless @silent
end

def current
@issue.fields["fixVersions"].first["name"]
end
end
end
end
2 changes: 2 additions & 0 deletions lib/messages/illegal_fixversion_change.erb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
<tr>
<th id="key">Key</th>
<th id="priority">Priority</th>
<th id="version">Fix Version</th>
<th id="when">When</th>
<th id="who">Who</th>
<th id="reporter">Reporter</th>
Expand All @@ -101,6 +102,7 @@
<tr>
<td><a href='<%= v.issue.url %>'><%= v.issue.key %></a></td>
<td><%= v.issue.priority %></td>
<td><%= v.current %></td>
<td><%= DateTime.parse(v.last["created"])
.strftime('%d-%b-%Y %I:%M:%S %p') %></td>
<td><span style='color: red'><%= v.last["author"]["displayName"] %></span>
Expand Down

0 comments on commit cc846ac

Please sign in to comment.