Skip to content

feat: add MustLoadTimeZone and fix CI for fork PRs#4

Merged
min0625 merged 1 commit into
mainfrom
feat/must-load-time-zone
Jun 23, 2026
Merged

feat: add MustLoadTimeZone and fix CI for fork PRs#4
min0625 merged 1 commit into
mainfrom
feat/must-load-time-zone

Conversation

@min0625

@min0625 min0625 commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add MustLoadTimeZone — a panic-on-error variant of LoadTimeZone for use in variable initializations and tests
  • Add recvcheck exclusion in .golangci.yaml for the intentional mixed-receiver pattern on TimeZone (pointer receivers for mutating methods, value receivers for the rest)
  • Trigger coverage workflow on pull_request events and make fail_ci_if_error conditional so tokenless fork PR uploads don't break CI

Test plan

  • make check passes (tidy + lint + test with -race)
  • New TestMustLoadTimeZone covers: zero value ("", "UTC"), valid zone, panic on "Local", panic on invalid name
  • ExampleMustLoadTimeZone runs as a doc example

🤖 Generated with Claude Code

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@codecov-commenter

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

Add MustLoadTimeZone as a panic-on-error variant of LoadTimeZone for
use in variable initializations and tests.

Suppress recvcheck lint for the intentional mixed-receiver pattern on
TimeZone. Run coverage upload on pull_request events and make
fail_ci_if_error conditional so tokenless fork uploads don't break CI.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@min0625 min0625 force-pushed the feat/must-load-time-zone branch from c04673e to a4efae3 Compare June 23, 2026 03:44
@min0625 min0625 merged commit 5c55ddb into main Jun 23, 2026
5 checks passed
@min0625 min0625 deleted the feat/must-load-time-zone branch June 23, 2026 03:46
Sign up for free to 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