ci: switch versioning to oneup CalVer (versionless git) - #3
Conversation
Stop hardcoding/manually bumping versionCode/versionName in presentation/build.gradle. The file is now versionless in git (versionCode 1, versionName 0.0.0 placeholders that keep the existing regex readers and archivesBaseName working); oneup computes the real CalVer (YY.MM.MICRO) version at release time from the date + prior v* git tags and writes it into build.gradle. - build-and-release.yml: add a Rust toolchain + "Compute version (oneup CalVer)" step before the existing read-version step, so the computed version flows into the APK build, F-Droid naming, and the v<version> release tag (created by the existing gh-release step, which is what oneup's git-tag source reads next time). Expose version_name/ version_code/tag_name as workflow_call outputs. - release-after-merge.yml: the fdroid-mr job now consumes the release job's version_name/version_code outputs instead of re-reading the (now versionless) gradle file. Re-running oneup there would increment past the just-released tag, so we thread the real version through. - manual-release.yml: deprecated. The manual semver bump + release PR is obsolete under oneup auto-versioning; gutted to a thin manual trigger that runs the same oneup-based build-and-release flow. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
🤖 CodeAnt AI — Review Status
|
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
|
Warning Review limit reached
Next review available in: 29 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
…sac/oneup#4) Drop the feature-branch pin; gradle + git-tag source landed on oneup main. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…port) Faster than compiling from git; oneup 26.7.0 is published to npm/crates/brew with the gradle target + git-tag source. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
User description
Summary
Switch QUIK from hardcoded/manually-bumped versions to oneup CalVer (
YY.MM.MICRO).presentation/build.gradleis now versionless in git; oneup computes the real version at release time from the date + priorv*git tags and writes it into the gradle file.What changed
presentation/build.gradle— versionless placeholders (versionCode 1,versionName '0.0.0') so the existing regex readers andarchivesBaseNamestill parse. Comment added:version injected at release time by oneup (CalVer YY.MM.MICRO); do not bump manually..github/workflows/build-and-release.yml— added adtolnay/rust-toolchain@stablestep and a Compute version (oneup CalVer) step before the existing "Capture version metadata" step. oneup installs fromcirclesac/oneup@feat/gradle-go-support(TODO: switch to a tagged release once feat: Android gradle + Go targets with a git-tag version source oneup#4 merges) and runsoneup version --target presentation/build.gradle --format YY.MM.MICRO. The existing read-version step then picks up the written value; the F-Droid APK naming, checksums, and thev<version>release tag (created by the existingsoftprops/action-gh-releasestep) all flow from it. Checkout already hadfetch-depth: 0, so oneup's git-tag source can see prior tags. Also exposedversion_name/version_code/tag_nameasworkflow_calloutputs..github/workflows/release-after-merge.yml— thefdroid-mrjob now consumes thereleasejob'sversion_name/version_codeoutputs instead of re-reading the (now versionless) gradle file. Re-running oneup there would increment past the just-released tag, so the real version is threaded through..github/workflows/manual-release.yml— deprecated. The manual semver bump + release-PR flow is obsolete under oneup auto-versioning. Gutted to a thinworkflow_dispatchtrigger that runs the same oneup-basedbuild-and-release.ymlflow (kept the file rather than deleting it, with a deprecation comment at the top).Notes / assumptions
v4.3.6-style, nowv26.7.0-style). No new tag step was needed — this is exactly the source oneup's git-tag mode reads on the next release.rust-toolchain@stablestep is added to be safe.🤖 Generated with Claude Code
CodeAnt-AI Description
Move release versioning to automatic CalVer and retire manual release bumps
What Changed
build.gradle.Impact
✅ Fewer release version mismatches✅ Shorter manual release process✅ Clearer F-Droid release naming💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.