Gito를 platformless Git control plane으로 시작할 수 있도록 Go core, Flutter control surface, contracts, ops 규칙, 검증 헬퍼를 함께 구성한다.
21 lines
570 B
Go
21 lines
570 B
Go
package provider
|
|
|
|
import (
|
|
"context"
|
|
|
|
"git.toki-labs.com/toki/gito/services/core/internal/core"
|
|
)
|
|
|
|
type ChangeRequestAdapter interface {
|
|
CreateChangeRequest(ctx context.Context, input core.ChangeRequest) (core.ChangeRequest, error)
|
|
UpdateChangeRequest(ctx context.Context, input core.ChangeRequest) (core.ChangeRequest, error)
|
|
CommentChangeRequest(ctx context.Context, id string, body string) error
|
|
CloseChangeRequest(ctx context.Context, id string) error
|
|
}
|
|
|
|
type WebhookEvent struct {
|
|
Provider string
|
|
EventType string
|
|
ExternalID string
|
|
Payload []byte
|
|
}
|