public void LogCheckinResult(PlasticChangeset changeset, List <PlasticTask> tasks) { foreach (var task in tasks) { _provider.AddTaskComment(task.Id, $"Linked with changeset [{ changeset.Id }]({ _configuration.GetPlasticChangesetURL(changeset) }): *{ changeset.Comment }*."); } }
public void LogCheckinResult(PlasticChangeset changeset, List <PlasticTask> tasks) { string comment = CreateComment(changeset); foreach (var task in tasks) { var card = GetCardFromSequentialId(GetCardSequentialIdFromTaskId(task.Id)); apiMethods.AddCommentToCard(card.CardCommonId, comment); } }
public void LogCheckinResult(PlasticChangeset pChangeset, List <PlasticTask> pTasks) { if (!_config.PostCommentsToTickets) { return; } foreach (var task in pTasks) { _ytService.AddCommentToIssue (task.Id, pChangeset.RepositoryServer, pChangeset.Repository, _config.WebGuiRootUrl ?? new Uri($"http://{pChangeset.RepositoryServer}"), pChangeset.Branch, pChangeset.Id, pChangeset.Comment, pChangeset.Guid); } }
public static string GetPlasticChangesetURL(this IssueTrackerConfiguration configuration, PlasticChangeset changeset) { var customUrl = configuration.GetPlasticWebURL()?.Trim(); if (!string.IsNullOrEmpty(customUrl)) { return($"{ configuration.GetPlasticWebURL().Trim() }{ changeset.Id }"); } return(string.Empty); }
public void UpdateLinkedTasksToChangeset(PlasticChangeset changeset, List <string> tasks) { throw new NotImplementedException(); }
private string CreateComment(PlasticChangeset changeset) { return(string.Format(COMMENT_TEMPLATE, changeset.Repository, changeset.Id, changeset.Guid, changeset.Comment)); }
public void UpdateLinkedTasksToChangeset(PlasticChangeset changeset, List <string> tasks) { // Not supported }
public void UpdateLinkedTasksToChangeset(PlasticChangeset changeset, List<string> tasks) { // Not supported }
/// <summary> /// Function is called everytime a changeset is created. /// - The commands are split using the separator regex (default {{(.*)}}) /// - Comments are uploaded to youtrack if preferences are set /// </summary> /// <param name="changeset"></param> /// <param name="tasks"></param> public void LogCheckinResult(PlasticChangeset changeset, List<PlasticTask> tasks) { var changeComment = changeset.Comment; var comment = ""; var command = ""; // detect & handle commands var match = mConfig.CommandsSelector.Match(changeComment); if (match.Success) { changeComment = changeComment.Replace(match.Groups[0].Value, ""); command = match.Groups[1].Value; } // add comments if (changeComment.Length > 0 && mConfig.PropagateComments) { comment = "Via PlasticSCM: " + changeComment; } foreach (var task in tasks) { ExecuteOnYoutrack(task.Id,command,comment); } }
public void UpdateLinkedTasksToChangeset(PlasticChangeset pChangeset, List <string> pTasks) { //TODO: Implement }