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 GraphQLError
- 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 GraphQLError ¶ added in v0.1.3
type GraphQLError struct { Type string `json:"type"` Path string `json:"path"` Message string `json:"message"` }
func (GraphQLError) String ¶ added in v0.1.3
func (g GraphQLError) String() string
type GraphQLErrors ¶ added in v0.1.2
type GraphQLErrors []GraphQLError
func (GraphQLErrors) Error ¶ added in v0.1.2
func (g GraphQLErrors) Error() string
func (GraphQLErrors) GetMessages ¶ added in v0.1.3
func (g GraphQLErrors) GetMessages() 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.