Skip to content

ci: update Go version to 1.24.0#107

Merged
flc1125 merged 1 commit intov2.xfrom
upgrade-go-version
Aug 24, 2025
Merged

ci: update Go version to 1.24.0#107
flc1125 merged 1 commit intov2.xfrom
upgrade-go-version

Conversation

@flc1125
Copy link
Copy Markdown
Owner

@flc1125 flc1125 commented Aug 24, 2025

  • Update Go version in go.mod from 1.23.0 to 1.24.0
  • Update Go version in GitHub Actions workflows from1.23.x to 1.24.x
  • Update supported Go version in README.md from 1.23.0 to 1.24.0
  • Update Go version constraint in renovate.json from 1.23.0 to 1.24.0
  • Update Go version matrix in test.yml to include 1.24.x and 1.25.x

Summary by CodeRabbit

  • Documentation

    • Updated README badge to reflect support for Go >= 1.24.
  • Tests

    • CI now tests against Go 1.24.x and 1.25.x.
  • Chores

    • Upgraded project toolchain and configs to Go 1.24.
    • Updated lint workflow to use Go 1.24.x.
    • Adjusted dependency update settings to target Go 1.24.

- Update Go version in go.mod from 1.23.0 to 1.24.0
- Update Go version in GitHub Actions workflows from1.23.x to 1.24.x
- Update supported Go version in README.md from 1.23.0 to 1.24.0
- Update Go version constraint in renovate.json from 1.23.0 to 1.24.0- Update Go version matrix in test.yml to include 1.24.x and 1.25.x
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Aug 24, 2025
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Aug 24, 2025

Walkthrough

Bumps project Go version from 1.23 to 1.24 across tooling and docs: updates setup-go in lint workflow, adjusts test matrix to 1.24 and 1.25, updates go.mod toolchain to 1.24.0, updates Renovate constraint, and refreshes README badge.

Changes

Cohort / File(s) Summary
GitHub Actions — Lint
.github/workflows/lint.yml
Update setup-go version from 1.23.x to 1.24.x.
GitHub Actions — Tests
.github/workflows/test.yml
Change matrix: drop 1.23.x, add 1.25.x; keep 1.24.x.
Go Toolchain
go.mod
Set Go toolchain version to 1.24.0.
Dependency Automation
renovate.json
Update constraints.go from 1.23.0 to 1.24.0.
Documentation
README.md
Update “Supported Go Versions” badge to >=1.24.0.

Sequence Diagram(s)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Suggested labels

go, size:M

Poem

Hop hop! I tweak the gears with cheer,
From 1.23 to 1.24, we steer.
CI nibbles fresh new bytes,
Tests hop to 1.25 heights.
README shines, badges bright—
Renovate burrows it just right.
Carrots compiled, all tight! 🥕✨

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch upgrade-go-version

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.40%. Comparing base (6f34e5c) to head (f16cc08).
⚠️ Report is 30 commits behind head on v2.x.

Additional details and impacted files
@@           Coverage Diff           @@
##             v2.x     #107   +/-   ##
=======================================
  Coverage   94.40%   94.40%           
=======================================
  Files           1        1           
  Lines         304      304           
=======================================
  Hits          287      287           
  Misses         15       15           
  Partials        2        2           

☔ 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.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (4)
README.md (1)

3-3: Badge bump looks good; consider aligning wording with go.mod semantics.

LGTM as-is. Minor nit: since the go.mod go directive should be 1.24 (no patch), you might prefer the badge to read ">=1.24" instead of ">=1.24.0" to keep docs and module semantics perfectly aligned. Optional only.

-![Supported Go Versions](https://img.shields.io/badge/Go-%3E%3D1.24.0-blue)
+![Supported Go Versions](https://img.shields.io/badge/Go-%3E%3D1.24-blue)
renovate.json (1)

10-11: Consider loosening Renovate’s Go constraint to the minor version.

Using "1.24.0" hard-pins Renovate to a specific patch. If your intent is “minimum 1.24,” consider using "1.24" so Renovate can pick up newer 1.24.x patches automatically. This also aligns with go.mod’s minor-only go directive.

-    "go": "1.24.0"
+    "go": "1.24"

If you instead intend to enforce a strict minimum including patch, keep as-is.

.github/workflows/test.yml (1)

17-17: CI matrix update is consistent and forward-looking.

Runs on 1.24.x and 1.25.x — good coverage while module targets 1.24. Optional: add fail-fast: false under strategy to avoid canceling the remaining matrix on a single failure; and set check-latest: true in setup-go to ensure latest patch on each run. No blockers.

.github/workflows/lint.yml (1)

19-19: Lint workflow Go version bump looks correct; consider minor hardening.

Keeping lint on a single stable minor is fine. Optional: add check-latest: true to ensure you get the latest 1.24.x patch, and pin a specific golangci-lint version via the action input to reduce drift.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 612267d and f16cc08.

📒 Files selected for processing (5)
  • .github/workflows/lint.yml (1 hunks)
  • .github/workflows/test.yml (1 hunks)
  • README.md (1 hunks)
  • go.mod (1 hunks)
  • renovate.json (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: go test (1.24.x, macos-latest)

module github.com/flc1125/go-gitlab-webhook/v2

go 1.23.0
go 1.24.0
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue

go.mod: use minor-only syntax in go directive (1.24, not 1.24.0).

The go directive takes a major.minor version (e.g., 1.24) — not a patch version. Keeping a patch here may cause tooling confusion and will be normalized by go mod tidy.

Apply this diff:

-go 1.24.0
+go 1.24

Optional: If you want to pin the toolchain to a specific patch, add a separate toolchain directive near the top (outside this changed line):

toolchain go1.24.0
🤖 Prompt for AI Agents
In go.mod around line 3, the go directive uses a patch-level version "1.24.0"
but should use the major.minor form "1.24"; update that line to "go 1.24". If
you need to pin a specific patched toolchain, add a separate top-level toolchain
directive like "toolchain go1.24.0" instead of putting the patch in the go
directive.

@flc1125 flc1125 merged commit d55e714 into v2.x Aug 24, 2025
12 checks passed
@flc1125 flc1125 deleted the upgrade-go-version branch August 24, 2025 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant