Skip to content

refactor: rename runActionlintOnFile to runActionlintOnFiles#20941

Merged
pelikhan merged 3 commits intomainfrom
copilot/function-namer-rename-functions
Mar 14, 2026
Merged

refactor: rename runActionlintOnFile to runActionlintOnFiles#20941
pelikhan merged 3 commits intomainfrom
copilot/function-namer-rename-functions

Conversation

Copy link
Contributor

Copilot AI commented Mar 14, 2026

The unexported runActionlintOnFile accepted []string but its name implied a single file, inconsistent with the exported RunActionlintOnFiles wrapper it backs.

Changes

  • pkg/cli/actionlint.go: Renamed runActionlintOnFilerunActionlintOnFiles (function + comment)
  • pkg/cli/compile_validation.go: Updated all three call sites
// Before
func runActionlintOnFile(lockFiles []string, verbose bool, strict bool) error {

// After
func runActionlintOnFiles(lockFiles []string, verbose bool, strict bool) error {

Pure rename — no behavior changes.

Copilot AI and others added 2 commits March 14, 2026 03:39
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 14, 2026 14:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Renames an unexported helper to accurately reflect that it operates on a slice of lock files, aligning it with the exported RunActionlintOnFiles wrapper.

Changes:

  • Renamed runActionlintOnFilerunActionlintOnFiles in pkg/cli/actionlint.go (function + comment).
  • Updated RunActionlintOnFiles and two per-file validation call sites to use the new helper name.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pkg/cli/actionlint.go Renames the internal actionlint helper and its comment to reflect multi-file behavior.
pkg/cli/compile_validation.go Updates the wrapper and validation call sites to call the renamed helper.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@pelikhan pelikhan merged commit 4e41f2f into main Mar 14, 2026
55 of 56 checks passed
@pelikhan pelikhan deleted the copilot/function-namer-rename-functions branch March 14, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[function-namer] Go function rename plan: access_log.go, actionlint.go, actions.go

3 participants