From 16d79a58bc4b95fee12a1700c84a3257fbe3b0d8 Mon Sep 17 00:00:00 2001 From: Yurii Dubinka Date: Thu, 24 Sep 2020 00:00:55 +0300 Subject: [PATCH] #225: add label with accuracy grade to the ticket Fixed #225 --- lib/lazylead/task/accuracy/accuracy.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/lazylead/task/accuracy/accuracy.rb b/lib/lazylead/task/accuracy/accuracy.rb index 91b8f25..98a47e4 100644 --- a/lib/lazylead/task/accuracy/accuracy.rb +++ b/lib/lazylead/task/accuracy/accuracy.rb @@ -85,7 +85,8 @@ def evaluate(digits = 2) # Post the comment with score and accuracy to the ticket. def post - @issue.post(comment) unless @opts.key? "silent" + @issue.post comment unless @opts.key? "silent" + @issue.add_label "#{(@accuracy / 10) * 10}%" unless @opts.key? "silent" end # The jira comment in markdown format