MCPcopy Create free account
hub / github.com/cli/cli / isWorkflowFile

Function isWorkflowFile

pkg/cmd/workflow/shared/shared.go:156–159  ·  view source on GitHub ↗
(f string)

Source from the content-addressed store, hash-verified

154}
155
156func isWorkflowFile(f string) bool {
157 name := strings.ToLower(f)
158 return strings.HasSuffix(name, ".yml") || strings.HasSuffix(name, ".yaml")
159}
160
161// ID can be either a numeric database ID or the workflow file name
162func getWorkflowByID(client *api.Client, repo ghrepo.Interface, ID string) (*Workflow, error) {

Callers 1

FindWorkflowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected