public Task CreateIssueTransitionReplyComment( [ActivityTrigger] CreateIssueTransitionReplyCommentContext context) { var body = $"The issue marked as {CommandRouter.GetTransition(context.Command)}. For more [detail]({context.Issue.Url})."; return(_repository.CreatePullRequestReplyComment(int.Parse(context.PullRequestId), body, int.Parse(context.InReplyTo))); }
public void GetTransitionNormalCase() { Assert.Equal("falsepositive", CommandRouter.GetTransition(CommandRouter.SuppressFalsePositiveComment)); }