public IPullRequestDiscussion GetDiscussion()
        {
            if (_discussion is null)
            {
                _discussion = new GitHubPullRequestDiscussion(_pullRequest);
            }

            return(_discussion);
        }
예제 #2
0
        private void LoadDiscussion(IPullRequestDiscussion discussion)
        {
            var t = DiscussionHtmlCreator.CreateFor(_currentPullRequestInfo, discussion != null ? discussion.Entries : null);

            _discussionWB.DocumentText = t;
        }
예제 #3
0
        private void LoadDiscussion([CanBeNull] IPullRequestDiscussion discussion)
        {
            var t = DiscussionHtmlCreator.CreateFor(_currentPullRequestInfo, discussion?.Entries);

            _discussionWB.DocumentText = t;
        }
 private void LoadDiscussion(IPullRequestDiscussion discussion)
 {
     var t = DiscussionHtmlCreator.CreateFor(_currentPullRequestInfo, discussion != null ? discussion.Entries : null);
     _discussionWB.DocumentText = t;
 }