Compare commits

...
3 Commits
4 changed files with 51 additions and 34 deletions
+1 -1
View File
@@ -1 +1 @@
1.0.42
1.0.45
+18 -2
View File
@@ -145,7 +145,15 @@ namespace JiraTimeBot.JiraIntegration
}
if (!dummy)
{
issue.DeleteWorklogAsync(workLog, token: cancellationToken);
try
{
issue.DeleteWorklogAsync(workLog, token: cancellationToken);
}
catch (Exception ex)
{
_log.Error($"Не могу удалить Worklog по задаче {taskTimeItem.Branch}: {ex.Message}.");
continue;
}
}
hasTodayWorklog = false;
}
@@ -163,7 +171,15 @@ namespace JiraTimeBot.JiraIntegration
Worklog workLogToAdd = new Worklog(timeSpentJira, date.Value, comment);
if (!dummy)
{
workLogToAdd = issue.AddWorklogAsync(workLogToAdd, token: cancellationToken).Result;
try
{
workLogToAdd = issue.AddWorklogAsync(workLogToAdd, token: cancellationToken).Result;
}
catch (Exception ex)
{
_log.Error($"Не могу добавить Worklog по задаче {taskTimeItem.Branch}: {ex.Message}.");
continue;
}
}
_log.Trace($"Добавили Worklog для {taskTimeItem.Branch}: {workLogToAdd.Author} {workLogToAdd.CreateDate}: {workLogToAdd.TimeSpent}");
}
+3 -3
View File
@@ -26,6 +26,6 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.42")]
[assembly: AssemblyFileVersion("1.0.42")]
[assembly: AssemblyInformationalVersion("1.0.42")]
[assembly: AssemblyVersion("1.0.45")]
[assembly: AssemblyFileVersion("1.0.45")]
[assembly: AssemblyInformationalVersion("1.0.45")]
+1
View File
@@ -172,6 +172,7 @@ namespace JiraTimeBot.UI
if (txtDummyMode.Checked)
{
_log.Info("Выключаем режим Тестового прогона");
txtDummyMode.Checked = false;
}
using (var tokenSource = GetTokenSource())