Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c95f228ef0 | ||
|
|
72f9ccfd5e |
+1
-1
@@ -1 +1 @@
|
||||
1.0.57
|
||||
1.0.59
|
||||
|
||||
@@ -107,9 +107,9 @@ namespace JiraTimeBot.JiraIntegration
|
||||
{
|
||||
issue = jira.Issues.Queryable.FirstOrDefault(f => f.Key == taskTimeItem.Branch);
|
||||
}
|
||||
catch (Exception)
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
_log.Error($"Ошибка получения задачи из JIRA: {ex.Message} - {ex.InnerException?.Message}");
|
||||
}
|
||||
if (issue == null)
|
||||
{
|
||||
|
||||
@@ -85,7 +85,12 @@ namespace JiraTimeBot.Mercurial
|
||||
|
||||
if (task.Type == CommitType.Release && task.Description.StartsWith("Merge with", StringComparison.CurrentCultureIgnoreCase))
|
||||
{
|
||||
var branch = task.Description.Replace("Merge with", "").Replace(" ", "");
|
||||
var description = task.Description;
|
||||
if (description.Contains("\n"))
|
||||
{
|
||||
description = description.Split('\n')[0];
|
||||
}
|
||||
var branch = description.Replace("Merge with", "").Replace(" ", "");
|
||||
var release = task.Branch.Replace("release", "");
|
||||
|
||||
task.Branch = branch;
|
||||
|
||||
@@ -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.57")]
|
||||
[assembly: AssemblyFileVersion("1.0.57")]
|
||||
[assembly: AssemblyInformationalVersion("1.0.57")]
|
||||
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.59")]
|
||||
[assembly: AssemblyFileVersion("1.0.59")]
|
||||
[assembly: AssemblyInformationalVersion("1.0.59")]
|
||||
|
||||
@@ -57,7 +57,18 @@ namespace JiraTimeBot.TaskTime
|
||||
}
|
||||
|
||||
var workTasks = _spreadHelper.SpreadTime(taskCommits, remainMinutes, settings.RoundToMinutes);
|
||||
workTimeItems.AddRange(workTasks);
|
||||
foreach (var workTask in workTasks)
|
||||
{
|
||||
var existingItem = workTimeItems.FirstOrDefault(f => f.Branch == workTask.Branch);
|
||||
if (existingItem != null)
|
||||
{
|
||||
existingItem.TimeSpent += workTask.TimeSpent;
|
||||
existingItem.Description += "\r\n" + workTask.Description;
|
||||
continue;
|
||||
}
|
||||
|
||||
workTimeItems.Add(workTask);
|
||||
}
|
||||
workTimeItems = workTimeItems.OrderByDescending(f => f.TimeSpent).ToList();
|
||||
|
||||
remainMinutes = minutesPerWorkDay - (int) workTimeItems.Sum(f => f.TimeSpent.TotalMinutes);
|
||||
|
||||
Reference in New Issue
Block a user