Documentation
¶
Index ¶
- type AWSClient
- func (c *AWSClient) GetPRComments(ctx context.Context, repo, prID, beforeCommit, afterCommit string) ([]Comment, error)
- func (c *AWSClient) GetPRMetadata(ctx context.Context, repo, prID string) (PRMetadata, error)
- func (c *AWSClient) ListPRs(ctx context.Context, repo, status string) ([]PRSummary, error)
- type Client
- type Comment
- type PRMetadata
- type PRSummary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSClient ¶
type AWSClient struct {
// contains filtered or unexported fields
}
AWSClient implements Client using the AWS SDK.
func NewAWSClient ¶
NewAWSClient creates a new CodeCommit client for the given region and profile. If profile is empty, the default credential chain is used.
func (*AWSClient) GetPRComments ¶
func (*AWSClient) GetPRMetadata ¶
type Client ¶
type Client interface {
GetPRMetadata(ctx context.Context, repo, prID string) (PRMetadata, error)
GetPRComments(ctx context.Context, repo, prID, beforeCommit, afterCommit string) ([]Comment, error)
ListPRs(ctx context.Context, repo, status string) ([]PRSummary, error)
}
Client defines the interface for interacting with AWS CodeCommit.
type Comment ¶
Comment represents a single comment on a pull request. FilePath is empty for PR-level comments.
Click to show internal directories.
Click to hide internal directories.