prow/github/fakegithub/fakegithub.go
func (f *FakeClient) CreateComment(owner, repo string, number int, comment string) error {
	f.IssueCommentsAdded = append(f.IssueCommentsAdded, fmt.Sprintf("%s/%s#%d:%s", owner, repo, number, comment))
	f.IssueComments[number] = append(f.IssueComments[number], github.IssueComment{
		ID:   f.IssueCommentID,
		Body: comment,
		User: github.User{Login: botName},
	})
	f.IssueCommentID++
	return nil
}
func (f *FakeClient) CreateComment(owner, repo string, number int, comment string) error {
	f.IssueCommentsAdded = append(f.IssueCommentsAdded, fmt.Sprintf("%s/%s#%d:%s", owner, repo, number, comment))
	f.IssueComments[number] = append(f.IssueComments[number], github.IssueComment{
		ID:   f.IssueCommentID,
		Body: comment,
		User: github.User{Login: botName},
	})
	f.IssueCommentID++
	return nil
}
func ( f * FakeClient ) CreateComment ( owner , repo string , number int , comment string ) error { f . IssueCommentsAdded = append ( f . IssueCommentsAdded , fmt . Sprintf ( " " , owner , repo , number , comment ) ) f . IssueComments [ number ] = append ( f . IssueComments [ number ] , github . IssueComment { ID : f . IssueCommentID , Body : comment , User : github . User { Login : botName } , } ) f . IssueCommentID ++ return nil }
// CreateComment adds a comment to a PR
CreateComment adds a comment to a PR