Skip to content

Replace init.sh with a robust Go initialization tool#44

Draft
google-labs-jules[bot] wants to merge 4 commits into
masterfrom
improve-init-script-1155010335296443994
Draft

Replace init.sh with a robust Go initialization tool#44
google-labs-jules[bot] wants to merge 4 commits into
masterfrom
improve-init-script-1155010335296443994

Conversation

@google-labs-jules
Copy link
Copy Markdown

Replaced the legacy init.sh bash script with a robust Go program (cmd/init/main.go). The new tool offers auto-detection of repository details, safe cross-platform file processing, and interactive prompts. It updates go.mod, Makefile, README.md, GitHub Actions configurations, and Go import paths. It also handles git hook deployment and self-cleanup after execution. Makefile and README.md have been updated to reflect the new usage.


PR created automatically by Jules for task 1155010335296443994 started by @sha1n

- Added `cmd/init/main.go` to handle repository initialization.
- Implemented auto-detection for owner, repo, and Go version.
- Replaced `sed` with safe Go-based string replacement.
- Added support for updating import paths in `.go` files.
- Added interactive prompts for missing information.
- Updated `Makefile` to include an `init` target.
- Updated `README.md` with new instructions.
- Removed the legacy `init.sh` script.
@google-labs-jules
Copy link
Copy Markdown
Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@coveralls
Copy link
Copy Markdown

coveralls commented Jan 19, 2026

Pull Request Test Coverage Report for Build 21126963084

Details

  • 109 of 222 (49.1%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+33.0%) to 45.528%

Changes Missing Coverage Covered Lines Changed/Added Lines %
cmd/init/main.go 109 222 49.1%
Totals Coverage Status
Change from base Build 19620320662: 33.0%
Covered Lines: 112
Relevant Lines: 246

💛 - Coveralls

google-labs-jules Bot and others added 2 commits January 19, 2026 05:58
- Replaced `init.sh` with `cmd/init/main.go`.
- Added `cmd/init/init_test.go` for integration testing.
- Implemented `Config` struct and `Run` function for testability.
- Updated `Makefile` to include an `init` target.
- Updated `README.md` with new initialization instructions.
- Updated `.github/workflows/go.yml` to verify the init script in CI.
- Removed legacy `init.sh`.
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.

1 participant