From 2c1e396502d2968b4bec59fe3e81fdf7b5e98e28 Mon Sep 17 00:00:00 2001 From: Danil Kislov Date: Thu, 27 Jun 2019 17:04:29 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=20=D1=82=D1=80=D0=BE=D0=B3=D0=B0?= =?UTF-8?q?=D0=B5=D0=BC=20RemainEstimate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .semver.txt | 2 +- src/JiraTimeBot/JiraIntegration/JiraApi.cs | 4 +- src/JiraTimeBot/Properties/AssemblyInfo.cs | 62 +++++++++++----------- 3 files changed, 34 insertions(+), 34 deletions(-) diff --git a/.semver.txt b/.semver.txt index 970b756..78a3e6e 100644 --- a/.semver.txt +++ b/.semver.txt @@ -1 +1 @@ -1.0.54 +1.0.55 diff --git a/src/JiraTimeBot/JiraIntegration/JiraApi.cs b/src/JiraTimeBot/JiraIntegration/JiraApi.cs index e7b2f5e..4c5f1ab 100644 --- a/src/JiraTimeBot/JiraIntegration/JiraApi.cs +++ b/src/JiraTimeBot/JiraIntegration/JiraApi.cs @@ -146,7 +146,7 @@ namespace JiraTimeBot.JiraIntegration { try { - issue.DeleteWorklogAsync(workLog, token: cancellationToken); + issue.DeleteWorklogAsync(workLog, WorklogStrategy.RetainRemainingEstimate, token: cancellationToken); } catch (Exception ex) { @@ -172,7 +172,7 @@ namespace JiraTimeBot.JiraIntegration { try { - workLogToAdd = issue.AddWorklogAsync(workLogToAdd, token: cancellationToken).Result; + workLogToAdd = issue.AddWorklogAsync(workLogToAdd, WorklogStrategy.RetainRemainingEstimate, token: cancellationToken).Result; } catch (Exception ex) { diff --git a/src/JiraTimeBot/Properties/AssemblyInfo.cs b/src/JiraTimeBot/Properties/AssemblyInfo.cs index b1bb446..50ff192 100644 --- a/src/JiraTimeBot/Properties/AssemblyInfo.cs +++ b/src/JiraTimeBot/Properties/AssemblyInfo.cs @@ -1,31 +1,31 @@ -using System.Reflection; -using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("JiraTimeBot")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("JiraTimeBot")] -[assembly: AssemblyCopyright("Copyright © 2019")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("f3b89316-c38c-4ce6-9d88-0b1373cfba1a")] -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// 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.54")] -[assembly: AssemblyFileVersion("1.0.54")] -[assembly: AssemblyInformationalVersion("1.0.54")] +using System.Reflection; +using System.Runtime.InteropServices; +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("JiraTimeBot")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("JiraTimeBot")] +[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("f3b89316-c38c-4ce6-9d88-0b1373cfba1a")] +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// 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.55")] +[assembly: AssemblyFileVersion("1.0.55")] +[assembly: AssemblyInformationalVersion("1.0.55")]