Skip to content

Commit 1457c51

Browse files
style: use the correct function nameing convention
1 parent 1e6d469 commit 1457c51

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/actions/workflows.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ func DetectWorkflows(
117117
if err != nil {
118118
return nil, nil, err
119119
}
120-
return _DetectWorkflows(gitRepo, commit, triggedEvent, payload, detectSchedule, entries)
120+
return detectWorkflows(gitRepo, commit, triggedEvent, payload, detectSchedule, entries)
121121
}
122122

123-
func _DetectWorkflows(
123+
func detectWorkflows(
124124
gitRepo *git.Repository,
125125
commit *git.Commit,
126126
triggedEvent webhook_module.HookEventType,
@@ -168,18 +168,18 @@ func _DetectWorkflows(
168168
}
169169

170170
func DetectScheduledGlobalWorkflows(gitRepo *git.Repository, commit *git.Commit, entries git.Entries) ([]*DetectedWorkflow, error) {
171-
return _DetectScheduledWorkflows(gitRepo, commit, entries)
171+
return detectScheduledWorkflows(gitRepo, commit, entries)
172172
}
173173

174174
func DetectScheduledWorkflows(gitRepo *git.Repository, commit *git.Commit) ([]*DetectedWorkflow, error) {
175175
entries, err := ListWorkflows(commit)
176176
if err != nil {
177177
return nil, err
178178
}
179-
return _DetectScheduledWorkflows(gitRepo, commit, entries)
179+
return detectScheduledWorkflows(gitRepo, commit, entries)
180180
}
181181

182-
func _DetectScheduledWorkflows(gitRepo *git.Repository, commit *git.Commit, entries git.Entries) ([]*DetectedWorkflow, error) {
182+
func detectScheduledWorkflows(gitRepo *git.Repository, commit *git.Commit, entries git.Entries) ([]*DetectedWorkflow, error) {
183183
if gitRepo != nil {
184184
log.Trace("detect scheduled workflow for gitRepo.Path: %q", gitRepo.Path)
185185
}

0 commit comments

Comments
 (0)