adityamparikh opened a new pull request, #35:
URL: https://github.com/apache/solr-mcp/pull/35

   ## Summary
   
   - Add 
[jmongard/git-semver-plugin](https://github.com/jmongard/Git.SemVersioning.Gradle)
 for automatic version calculation from git tags and conventional commits
   - Add `auto-release.yml` workflow for automated releases when PRs are merged 
to main
   - Update `build-and-publish.yml` to use plugin-calculated version
   - Comprehensive documentation updates to `WORKFLOWS.md`
   
   ## How It Works
   
   ### Version Calculation
   The plugin analyzes commits since the last tag:
   - `fix:` → patch bump (1.0.0 → 1.0.1)
   - `feat:` → minor bump (1.0.0 → 1.1.0)  
   - `feat!:` or `BREAKING CHANGE:` → major bump (1.0.0 → 2.0.0)
   
   ### Release Flow
   ```
   PR Merged to main
          │
          ▼
   ┌──────────────────────┐
   │ auto-release.yml     │  Calculates version, generates changelog
   │ Creates v1.0.0 tag   │  Creates GitHub Release
   └──────────┬───────────┘
              │
              ▼
   ┌──────────────────────┐
   │ build-and-publish    │  Triggered by v* tag
   │ Publishes Docker     │  to GHCR
   └──────────────────────┘
   ```
   
   ### New Gradle Commands
   ```bash
   ./gradlew printVersion      # Show calculated version (e.g., 0.1.0-SNAPSHOT)
   ./gradlew printChangeLog    # Show auto-generated changelog
   ./gradlew releaseVersion    # Create release commit + tag
   ```
   
   ## Test plan
   - [x] `./gradlew printVersion` returns `0.1.0-SNAPSHOT`
   - [x] `./gradlew printChangeLog` generates proper changelog from commits
   - [x] `./gradlew classes` compiles successfully
   - [ ] Verify workflow triggers correctly on merge to main
   - [ ] Verify tag creation triggers Docker publishing
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to