From e05b122ea7dc250d94c6349fc65b93caa28d6069 Mon Sep 17 00:00:00 2001 From: Yu Daike Date: Wed, 11 Dec 2024 11:14:02 +0800 Subject: [PATCH] style: use the correct function nameing convention --- modules/actions/workflows.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/actions/workflows.go b/modules/actions/workflows.go index 83aaf5a1ea..c6484c328b 100644 --- a/modules/actions/workflows.go +++ b/modules/actions/workflows.go @@ -117,10 +117,10 @@ func DetectWorkflows( if err != nil { return nil, nil, err } - return _DetectWorkflows(gitRepo, commit, triggedEvent, payload, detectSchedule, entries) + return detectWorkflows(gitRepo, commit, triggedEvent, payload, detectSchedule, entries) } -func _DetectWorkflows( +func detectWorkflows( gitRepo *git.Repository, commit *git.Commit, triggedEvent webhook_module.HookEventType, @@ -168,7 +168,7 @@ func _DetectWorkflows( } func DetectScheduledGlobalWorkflows(gitRepo *git.Repository, commit *git.Commit, entries git.Entries) ([]*DetectedWorkflow, error) { - return _DetectScheduledWorkflows(gitRepo, commit, entries) + return detectScheduledWorkflows(gitRepo, commit, entries) } func DetectScheduledWorkflows(gitRepo *git.Repository, commit *git.Commit) ([]*DetectedWorkflow, error) { @@ -176,10 +176,10 @@ func DetectScheduledWorkflows(gitRepo *git.Repository, commit *git.Commit) ([]*D if err != nil { return nil, err } - return _DetectScheduledWorkflows(gitRepo, commit, entries) + return detectScheduledWorkflows(gitRepo, commit, entries) } -func _DetectScheduledWorkflows(gitRepo *git.Repository, commit *git.Commit, entries git.Entries) ([]*DetectedWorkflow, error) { +func detectScheduledWorkflows(gitRepo *git.Repository, commit *git.Commit, entries git.Entries) ([]*DetectedWorkflow, error) { if gitRepo != nil { log.Trace("detect scheduled workflow for gitRepo.Path: %q", gitRepo.Path) }