我正在尝试使用Gemini 5 c# API添加对问题的评论。
问题是GeminiService.Item.IssueCommentCreate返回null。
创建commentDto对象并将其传递给IssueCommentCreate,其中填充了与先前gemini api相同的属性(Comment,IssueId,Visibility) (不填充FullName和ProjectId )。我试着填充ProjectId,但没有成功。
你能分享一下你是如何添加评论的吗?
问候
发布于 2013-07-24 18:41:12
原因是我指定的注释可见性不在数据库的注释可见性分类器中。
对于15,IssueCommentCreate返回null值,但添加可见性为1和12的注释时没有任何问题
在以前的Gemini版本(API版本4.0.1.3038)中,我可以毫无问题地添加可见性为414的评论(为它返回填充了ID的评论对象实例)
问候
发布于 2013-07-02 21:00:42
我们使用了Gemini的示例API,它可以工作:
var comments = new IssueComment();
comments.Comment = txtComment.Text;
comments.ProjectId = projectId;
comments.UserId = userId;
comments.IssueId = issueId;
login.Item.IssueCommentCreate(comments);
https://stackoverflow.com/questions/17422635
复制相似问题