Documentation
¶
Index ¶
- Constants
- type GH
- func (g GH) GetActionState(t testing.TB, ctx context.Context, owner, repo, token string, runID int64) (string, string, error)
- func (g GH) GetBuildLogs(t testing.TB, ctx context.Context, owner, repo, token string, runID int64) (string, error)
- func (g GH) GetFinalActionState(t testing.TB, ctx context.Context, owner, repo, token string, runID int64, ...) (string, string, error)
- func (g GH) GetLastActionState(t testing.TB, ctx context.Context, owner, repo, token, commitSha string) (int64, string, string, error)
- func (g GH) WaitBuildSuccess(t testing.TB, owner, repo, token, commitSha, failureMsg string, ...) error
Constants ¶
View Source
const ( StatusQueued = "queued" StatusPending = "pending" StatusWaiting = "waiting" StatusWorking = "in_progress" StatusSuccess = "success" StatusFailure = "failure" StatusCancelled = "cancelled" StatusTimeout = "timed_out" StatusNeutral = "neutral" StatusSkipped = "skipped" StatusActionRequired = "action_required" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GH ¶
type GH struct {
TriggerNewBuild func(t testing.TB, ctx context.Context, owner, repo, token, commitSha string, runID int64) (int64, string, string, error)
// contains filtered or unexported fields
}
func (GH) GetActionState ¶
func (g GH) GetActionState(t testing.TB, ctx context.Context, owner, repo, token string, runID int64) (string, string, error)
GetActionState returns the state of a given action
func (GH) GetBuildLogs ¶
func (g GH) GetBuildLogs(t testing.TB, ctx context.Context, owner, repo, token string, runID int64) (string, error)
GetBuildLogs returns the execution logs of an action
func (GH) GetFinalActionState ¶
func (g GH) GetFinalActionState(t testing.TB, ctx context.Context, owner, repo, token string, runID int64, maxBuildRetry int) (string, string, error)
GetFinalActionState returns the final state of an action
Click to show internal directories.
Click to hide internal directories.