Documentation
¶
Index ¶
- func Approve(ctx *context_module.Context)
- func ApproveAllChecks(ctx *context_module.Context)
- func ArtifactsDeleteView(ctx *context_module.Context)
- func ArtifactsDownloadView(ctx *context_module.Context)
- func Cancel(ctx *context_module.Context)
- func ClearCancelled(ctx *context_module.Context)
- func ClearFailed(ctx *context_module.Context)
- func ClearOldSuccess(ctx *context_module.Context)
- func ClearRunning(ctx *context_module.Context)
- func Delete(ctx *context_module.Context)
- func DisableWorkflowFile(ctx *context_module.Context)
- func DiskUsage(ctx *context_module.Context)
- func EnableWorkflowFile(ctx *context_module.Context)
- func GetWorkflowBadge(ctx *context.Context)
- func List(ctx *context.Context)
- func Logs(ctx *context_module.Context)
- func MustEnableActions(ctx *context.Context)
- func Rerun(ctx *context_module.Context)
- func Run(ctx *context_module.Context)
- func View(ctx *context_module.Context)
- func ViewPost(ctx *context_module.Context)
- func ViewWorkflowFile(ctx *context_module.Context)
- func WorkflowDispatchInputs(ctx *context.Context)
- type ArtifactsViewItem
- type LogCursor
- type ViewBranch
- type ViewCommit
- type ViewJob
- type ViewJobStep
- type ViewRequest
- type ViewResponse
- type ViewStepLog
- type ViewStepLogLine
- type ViewUser
- type WorkflowDispatch
- type WorkflowDispatchInput
- type WorkflowInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Approve ¶
func Approve(ctx *context_module.Context)
func ApproveAllChecks ¶
func ApproveAllChecks(ctx *context_module.Context)
func ArtifactsDeleteView ¶
func ArtifactsDeleteView(ctx *context_module.Context)
func ArtifactsDownloadView ¶
func ArtifactsDownloadView(ctx *context_module.Context)
func Cancel ¶
func Cancel(ctx *context_module.Context)
func ClearCancelled ¶
func ClearCancelled(ctx *context_module.Context)
ClearCancelled deletes all cancelled workflow runs for the repository
func ClearFailed ¶
func ClearFailed(ctx *context_module.Context)
ClearFailed deletes all failed workflow runs for the repository
func ClearOldSuccess ¶
func ClearOldSuccess(ctx *context_module.Context)
ClearOldSuccess deletes successful workflow runs older than the specified number of days
func ClearRunning ¶
func ClearRunning(ctx *context_module.Context)
ClearRunning deletes stuck running workflow runs for the repository
func Delete ¶
func Delete(ctx *context_module.Context)
func DisableWorkflowFile ¶
func DisableWorkflowFile(ctx *context_module.Context)
func DiskUsage ¶
func DiskUsage(ctx *context_module.Context)
DiskUsage returns disk usage statistics for the repository's workflow runs
func EnableWorkflowFile ¶
func EnableWorkflowFile(ctx *context_module.Context)
func Logs ¶
func Logs(ctx *context_module.Context)
func MustEnableActions ¶
MustEnableActions check if actions are enabled in settings
func Rerun ¶
func Rerun(ctx *context_module.Context)
Rerun will rerun jobs in the given run If jobIndexStr is a blank string, it means rerun all jobs
func Run ¶
func Run(ctx *context_module.Context)
func View ¶
func View(ctx *context_module.Context)
func ViewPost ¶
func ViewPost(ctx *context_module.Context)
func ViewWorkflowFile ¶
func ViewWorkflowFile(ctx *context_module.Context)
Types ¶
type ArtifactsViewItem ¶
type LogCursor ¶
type ViewBranch ¶
type ViewCommit ¶
type ViewCommit struct {
ShortSha string `json:"shortSHA"`
Link string `json:"link"`
Pusher ViewUser `json:"pusher"`
Branch ViewBranch `json:"branch"`
}
type ViewJob ¶
type ViewJobStep ¶
type ViewResponse ¶
type ViewResponse struct {
Artifacts []*ArtifactsViewItem `json:"artifacts"`
State struct {
Run struct {
Link string `json:"link"`
Title string `json:"title"`
TitleHTML template.HTML `json:"titleHTML"`
Status string `json:"status"`
CanCancel bool `json:"canCancel"`
CanApprove bool `json:"canApprove"` // the run needs an approval and the doer has permission to approve
CanRerun bool `json:"canRerun"`
CanDeleteArtifact bool `json:"canDeleteArtifact"`
Done bool `json:"done"`
WorkflowID string `json:"workflowID"`
WorkflowLink string `json:"workflowLink"`
IsSchedule bool `json:"isSchedule"`
Jobs []*ViewJob `json:"jobs"`
Commit ViewCommit `json:"commit"`
} `json:"run"`
CurrentJob struct {
Title string `json:"title"`
Detail string `json:"detail"`
Steps []*ViewJobStep `json:"steps"`
} `json:"currentJob"`
} `json:"state"`
Logs struct {
StepsLog []*ViewStepLog `json:"stepsLog"`
} `json:"logs"`
}
type ViewStepLog ¶
type ViewStepLog struct {
Step int `json:"step"`
Cursor int64 `json:"cursor"`
Lines []*ViewStepLogLine `json:"lines"`
Started int64 `json:"started"`
}
type ViewStepLogLine ¶
type ViewUser ¶
type WorkflowDispatch ¶
type WorkflowDispatch struct {
Inputs []WorkflowDispatchInput
}
type WorkflowDispatchInput ¶
Source Files
¶
- actions.go
- badge.go
- view.go
Click to show internal directories.
Click to hide internal directories.