Documentation ¶
Index ¶
- Constants
- func DetectWorkflows(gitRepo *git.Repository, commit *git.Commit, ...) ([]*DetectedWorkflow, []*DetectedWorkflow, error)
- func FormatLog(timestamp time.Time, content string) string
- func FullSteps(task *actions_model.ActionTask) []*actions_model.ActionTaskStep
- func GetContentFromEntry(entry *git.TreeEntry) ([]byte, error)
- func GetEventsFromContent(content []byte) ([]*jobparser.Event, error)
- func IsDefaultBranchWorkflow(triggedEvent webhook_module.HookEventType) bool
- func IsWorkflow(path string) bool
- func ListWorkflows(commit *git.Commit) (git.Entries, error)
- func OpenLogs(ctx context.Context, inStorage bool, filename string) (io.ReadSeekCloser, error)
- func ParseLog(in string) (time.Time, string, error)
- func ReadLogs(ctx context.Context, inStorage bool, filename string, offset, limit int64) ([]*runnerv1.LogRow, error)
- func RemoveLogs(ctx context.Context, inStorage bool, filename string) error
- func TransferLogs(ctx context.Context, filename string) (func(), error)
- func WriteLogs(ctx context.Context, filename string, offset int64, rows []*runnerv1.LogRow) ([]int, error)
- type DetectedWorkflow
Constants ¶
View Source
const ( GithubEventPullRequest = "pull_request" GithubEventPullRequestTarget = "pull_request_target" GithubEventPullRequestReviewComment = "pull_request_review_comment" GithubEventPullRequestReview = "pull_request_review" GithubEventRegistryPackage = "registry_package" GithubEventCreate = "create" GithubEventDelete = "delete" GithubEventFork = "fork" GithubEventPush = "push" GithubEventIssues = "issues" GithubEventIssueComment = "issue_comment" GithubEventRelease = "release" GithubEventPullRequestComment = "pull_request_comment" GithubEventGollum = "gollum" GithubEventSchedule = "schedule" )
View Source
const ( MaxLineSize = 64 * 1024 DBFSPrefix = "actions_log/" )
Variables ¶
This section is empty.
Functions ¶
func DetectWorkflows ¶
func DetectWorkflows( gitRepo *git.Repository, commit *git.Commit, triggedEvent webhook_module.HookEventType, payload api.Payloader, detectSchedule bool, ) ([]*DetectedWorkflow, []*DetectedWorkflow, error)
func FullSteps ¶
func FullSteps(task *actions_model.ActionTask) []*actions_model.ActionTaskStep
FullSteps returns steps with "Set up job" and "Complete job"
func GetContentFromEntry ¶ added in v1.20.0
func GetEventsFromContent ¶ added in v1.20.0
func IsDefaultBranchWorkflow ¶ added in v1.21.6
func IsDefaultBranchWorkflow(triggedEvent webhook_module.HookEventType) bool
IsDefaultBranchWorkflow returns true if the event only triggers workflows on the default branch
func IsWorkflow ¶ added in v1.20.0
Types ¶
type DetectedWorkflow ¶ added in v1.21.0
func DetectScheduledWorkflows ¶ added in v1.21.5
func DetectScheduledWorkflows(gitRepo *git.Repository, commit *git.Commit) ([]*DetectedWorkflow, error)
Click to show internal directories.
Click to hide internal directories.