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

Function isWorkflowFile

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

Source from the content-addressed store, hash-verified

156}
157
158func isWorkflowFile(f string) bool {
159 name := strings.ToLower(f)
160 return strings.HasSuffix(name, ".yml") || strings.HasSuffix(name, ".yaml")
161}
162
163// ID can be either a numeric database ID or the workflow file name
164func 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