Не учитываем закрытые ветки
This commit is contained in:
1 parent
f27997b86b
commit
83340c3ef5
3 files changed
+32
-1
No files matched your search
@@ -34,13 +34,18 @@ namespace JiraTimeBotForm.TaskTime
|
||||
}
|
||||
|
||||
var repo = new Repository(repoDirectory);
|
||||
var log = repo.Log(new LogCommand {Date = date, Users = { settings.MercurialAuthorEmail }});
|
||||
var log = repo.Log(new LogCommand {Date = date, Users = { settings.MercurialAuthorEmail } });
|
||||
foreach (var changeset in log)
|
||||
{
|
||||
if (!changeset.Branch.Contains("-"))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
//Пропускаем Close коммиты
|
||||
if (changeset.CommitMessage.StartsWith($"Close {changeset.Branch} branch"))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
workTasks.Add(changeset.Branch);
|
||||
_log.Trace($" - Найден changeset: {changeset.Timestamp} - {changeset.Branch} - {changeset.AuthorEmailAddress}");
|
||||
|
||||
Reference in new issue
Block a user