Skip to content

Make GitProperties optional for worktree environments#174

Merged
em3s merged 1 commit intomainfrom
fix/optional-git-properties
Feb 5, 2026
Merged

Make GitProperties optional for worktree environments#174
em3s merged 1 commit intomainfrom
fix/optional-git-properties

Conversation

@em3s
Copy link
Copy Markdown
Contributor

@em3s em3s commented Feb 5, 2026

Summary

Make GitProperties optional to allow the application to start in git worktree environments where generateGitProperties Gradle task may fail.

Changes

  • WebFilterConfig.kt: Change gitProperties: GitProperties to gitProperties: GitProperties?
  • ResponseMetaFactory.kt: Change to nullable and use safe call operators (?.)

How to Test

# Build without generating git properties
./gradlew :server:build -x generateGitProperties

# Run server - should start without git metadata
./gradlew :server:bootRun -x generateGitProperties

🤖 Generated with Claude Code

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working module:server labels Feb 5, 2026
GitProperties may not be available when running in git worktree
environments where generateGitProperties task fails. Making it
optional allows the application to start without git metadata.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@em3s em3s force-pushed the fix/optional-git-properties branch from 3de08d6 to 8acd49b Compare February 5, 2026 03:39
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Feb 5, 2026
@em3s em3s merged commit 3d27caf into main Feb 5, 2026
9 checks passed
@em3s em3s self-assigned this Feb 6, 2026
@em3s em3s changed the title fix(server): make GitProperties optional for worktree environments Make GitProperties optional for worktree environments Feb 12, 2026
@em3s em3s deleted the fix/optional-git-properties branch March 1, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working 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