Documentation
¶
Index ¶
- func CreateCheckRun(ctx context.Context, client *http.Client, token string, ...) (string, error)
- func DeleteRef(ctx context.Context, client *http.Client, token, refNodeID string) error
- func GetConfig(ctx context.Context, client *http.Client, token string, ...) ([]byte, error)
- func GetLatestBaseCommitSha(ctx context.Context, client *http.Client, token string, ...) (string, error)
- func GetPullRequestsThatAreOpenAndHaveOneOfTheseLabels(ctx context.Context, client *http.Client, token string, ...) ([]common.PullRequest, error)
- func MergePullRequest(ctx context.Context, client *http.Client, ...) error
- func UpdateCheckRun(ctx context.Context, client *http.Client, token string, ...) (string, error)
- func UpdatePullRequest(ctx context.Context, client *http.Client, token string, ...) error
- type AccessToken
- type GraphQLErrors
- type PullRequestDetails
- type ResponseError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCheckRun ¶
func GetLatestBaseCommitSha ¶
func MergePullRequest ¶
func UpdateCheckRun ¶
Types ¶
type AccessToken ¶
func GetAccessToken ¶
type GraphQLErrors ¶ added in v0.1.2
type GraphQLErrors struct {
Errors []string
}
func (GraphQLErrors) Error ¶ added in v0.1.2
func (g GraphQLErrors) Error() string
type PullRequestDetails ¶
type PullRequestDetails struct {
AheadBy int
ApprovedBy []string
Author string
BaseRefName string
CheckStates map[string]string
HasConflicts bool
HeadRefID string
HeadRefName string
ID string
IsMergeable bool
Labels []string
LastCommitSha string
LastCommitTime time.Time
State string
Title string
}
func GetPullRequestDetails ¶
func GetPullRequestDetails( ctx context.Context, client *http.Client, token string, repo *common.Repository, number int64, ) (*PullRequestDetails, error)
type ResponseError ¶
type ResponseError struct {
Message string
ActualStatusCode int
ExpectedStatusCode int
Body string
NextError error
}
func (*ResponseError) Error ¶
func (e *ResponseError) Error() string
func (*ResponseError) MarshalZerologObject ¶
func (e *ResponseError) MarshalZerologObject(ev *zerolog.Event)
Click to show internal directories.
Click to hide internal directories.