Skip to content

chore: Rename 'opt' to 'opts' in multiple methods - #3887

Merged
gmlewis merged 1 commit into
google:masterfrom
alexandear-org:refactor/rename-opt-to-opts
Dec 17, 2025
Merged

chore: Rename 'opt' to 'opts' in multiple methods#3887
gmlewis merged 1 commit into
google:masterfrom
alexandear-org:refactor/rename-opt-to-opts

Conversation

@alexandear

Copy link
Copy Markdown
Contributor

This PR standardizes parameter naming from opt to opts in multiple service methods. Renaming function parameters does not break compatibility, so this change is safe.

opts is more commonly used throughout the repository:

grep -r 'opt \*' --include='*.go' --exclude-dir=testdata .| wc -l 7grep -r 'opts \*' --include='*.go' --exclude-dir=testdata .| wc -l 321

@gmlewisgmlewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you, @alexandear!
LGTM.
Merging.

@codecov

codecovBot commented Dec 17, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.48%. Comparing base (e1238d0) to head (784db54).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@ Coverage Diff @@## master #3887 +/- ##
=======================================
Coverage 92.48% 92.48% =======================================
Files 200 200 Lines 14564 14564 =======================================
Hits 13469 13469 Misses 895 895 Partials 200 200 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gmlewisgmlewis changed the title fix: Rename 'opt' to 'opts' in multiple methodschore: Rename 'opt' to 'opts' in multiple methodsDec 17, 2025
@gmlewis
gmlewis merged commit ecab7f1 into google:masterDec 17, 2025
7 checks passed
@alexandear
alexandear deleted the refactor/rename-opt-to-opts branch December 17, 2025 20:58
jlaportebot added a commit to jlaportebot/go-github that referenced this pull request Jun 28, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@alexandear@gmlewis