Ejemplo n.º 1
0
        private static string GetDestinationBody(IssueMoveData issueToMove)
        {
            var dateTime = issueToMove.CreatedDate.ToLocalTime().DateTime;

            return($@"_From @{issueToMove.Author} on {dateTime.ToLongDateString()} {dateTime.ToLongTimeString()}_

{issueToMove.Body}

_Copied from original issue: {issueToMove.RepoOwner}/{issueToMove.RepoName}#{issueToMove.Number}_");
        }
Ejemplo n.º 2
0
        private static string GetDestinationComment(IssueMoveData issueToMove, string author, string text, DateTimeOffset date)
        {
            var originalIssueLink = $"{issueToMove.RepoOwner}/{issueToMove.RepoName}#{issueToMove.Number}";
            var dateTime          = date.ToLocalTime().DateTime;
            var commentDate       = $"{dateTime.ToLongDateString()} {dateTime.ToLongTimeString()}";

            return($@"---
**Issue moved from {originalIssueLink}**
- Please respond to @{author}.

---

_From @{author} on {commentDate}_

{text}");
        }
Ejemplo n.º 3
0
        private static string GetDestinationBody(IssueMoveData issueToMove)
        {
            var originalIssueLink = $"{issueToMove.RepoOwner}/{issueToMove.RepoName}#{issueToMove.Number}";
            var dateTime          = issueToMove.CreatedDate.ToLocalTime().DateTime;
            var issueDate         = $"{dateTime.ToLongDateString()} {dateTime.ToLongTimeString()}";
            var author            = issueToMove.Author;

            return($@"---
**Issue moved from {originalIssueLink}**
- Please respond to @{author}.

---

_From @{author} on {issueDate}_

{issueToMove.Body}");
        }