feat: correctly implement bitbucket & add OpenAIAdapter
This commit is contained in:
@@ -20,10 +20,11 @@ func New(chat ChatAdapter, git GitAdapter) *Service {
|
||||
}
|
||||
|
||||
type GitAdapter interface {
|
||||
GetDiff(owner, repo string, prID int) (io.Reader, error)
|
||||
AddComment(owner, repo string, prID int, comment Comment) error
|
||||
GetDiff(ctx context.Context, owner, repo string, prID int) (io.ReadCloser, error)
|
||||
AddComment(ctx context.Context, owner, repo string, prID int, comment Comment) error
|
||||
}
|
||||
|
||||
type ChatAdapter interface {
|
||||
GenerateStructured(ctx context.Context, messages []chatter.Message, target interface{}) error
|
||||
GetProviderName() string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user