Ejemplo n.º 1
0
        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)));
        }
Ejemplo n.º 2
0
 public void GetTransitionNormalCase()
 {
     Assert.Equal("falsepositive", CommandRouter.GetTransition(CommandRouter.SuppressFalsePositiveComment));
 }