Documentation ¶
Index ¶
- func Approve(ctx *context_module.Context)
- func ArtifactsDownloadView(ctx *context_module.Context)
- func ArtifactsView(ctx *context_module.Context)
- func Cancel(ctx *context_module.Context)
- func List(ctx *context.Context)
- func MustEnableActions(ctx *context.Context)
- func RerunAll(ctx *context_module.Context)
- func RerunOne(ctx *context_module.Context)
- func View(ctx *context_module.Context)
- func ViewPost(ctx *context_module.Context)
- type ArtifactsViewItem
- type ArtifactsViewResponse
- type ViewBranch
- type ViewCommit
- type ViewJob
- type ViewJobStep
- type ViewRequest
- type ViewResponse
- type ViewStepLog
- type ViewStepLogLine
- type ViewUser
- type Workflow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Approve ¶ added in v1.20.0
func Approve(ctx *context_module.Context)
func ArtifactsDownloadView ¶ added in v1.20.0
func ArtifactsDownloadView(ctx *context_module.Context)
func ArtifactsView ¶ added in v1.20.0
func ArtifactsView(ctx *context_module.Context)
func Cancel ¶
func Cancel(ctx *context_module.Context)
func MustEnableActions ¶
MustEnableActions check if actions are enabled in settings
func RerunAll ¶ added in v1.20.0
func RerunAll(ctx *context_module.Context)
func RerunOne ¶ added in v1.20.0
func RerunOne(ctx *context_module.Context)
func View ¶
func View(ctx *context_module.Context)
func ViewPost ¶
func ViewPost(ctx *context_module.Context)
Types ¶
type ArtifactsViewItem ¶ added in v1.20.0
type ArtifactsViewResponse ¶ added in v1.20.0
type ArtifactsViewResponse struct {
Artifacts []*ArtifactsViewItem `json:"artifacts"`
}
type ViewBranch ¶ added in v1.20.0
type ViewCommit ¶ added in v1.20.0
type ViewJobStep ¶
type ViewRequest ¶
type ViewResponse ¶
type ViewResponse struct { State struct { Run struct { Link string `json:"link"` Title string `json:"title"` 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"` Done bool `json:"done"` 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 ¶
Click to show internal directories.
Click to hide internal directories.