Еще рефакторинга
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
using System.Text;
|
using JiraTimeBotForm.TaskTime;
|
||||||
using System.Threading.Tasks;
|
|
||||||
using JiraTimeBotForm.TaskTime;
|
|
||||||
|
|
||||||
namespace JiraTimeBotForm.JiraIntegration
|
namespace JiraTimeBotForm.JiraIntegration
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,13 +15,12 @@ namespace JiraTimeBotForm.JiraIntegration
|
|||||||
|
|
||||||
public string GetDescription(TaskTimeItem taskTimeItem, bool addCommentsToWorklog)
|
public string GetDescription(TaskTimeItem taskTimeItem, bool addCommentsToWorklog)
|
||||||
{
|
{
|
||||||
var comment = _dummyComments.OrderBy(f=>Guid.NewGuid()).FirstOrDefault();
|
|
||||||
if (addCommentsToWorklog)
|
if (addCommentsToWorklog)
|
||||||
{
|
{
|
||||||
comment = taskTimeItem.Description;
|
return taskTimeItem.Description;
|
||||||
}
|
}
|
||||||
|
|
||||||
return comment;
|
return _dummyComments.OrderBy(f => Guid.NewGuid()).FirstOrDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,9 +1,4 @@
|
|||||||
using System.Collections.Generic;
|
namespace JiraTimeBotForm.Mercurial
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace JiraTimeBotForm.Mercurial
|
|
||||||
{
|
{
|
||||||
public interface ICommitSkipper
|
public interface ICommitSkipper
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,4 @@
|
|||||||
using System;
|
namespace JiraTimeBotForm.TasksProcessors
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace JiraTimeBotForm.TasksProcessors
|
|
||||||
{
|
{
|
||||||
public interface ITasksProcessors
|
public interface ITasksProcessors
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace JiraTimeBotForm.UI
|
namespace JiraTimeBotForm.UI
|
||||||
|
|||||||
Reference in New Issue
Block a user