MCPcopy Index your code
hub / github.com/cli/cli / isWorkflowFile

Function isWorkflowFile

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

Source from the content-addressed store, hash-verified

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