Skip to content

(chore) Version builds by their commit and simplify pull request checks - #33

Merged
nimerix merged 1 commit into
mainfrom
ci/commit-version
Nov 18, 2026
Merged

nimerix merged 1 commit into
mainfrom
ci/commit-version

Conversation

@nimerix

@nimerix nimerix commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • The app's version is now the short hash of the commit it was built from, as GitHub shows it. The What's new button reads "You're on version ", and the documentation sidebar shows the same hash. Cloudflare builds read WORKERS_CI_COMMIT_SHA; other builds ask git.
  • Each release on the What's new page and in the popover shows the commit it shipped in. New entries leave commit out: the build finds the commit that added them (scripts/release-commits.mjs), fetching full history first if the checkout is shallow. The three existing entries name their ship commits, because their entries were written after the code shipped.
  • The release list starts at Warp (198b3f2), the first release with a clean ship commit. The 25 earlier version-numbered entries are gone.
  • Semver is gone: no version in package.json, no version numbers in the changelog, no per-PR bump.
  • Pull request checks are now just the title in (type) Summary form, the Summary and Testing sections, and npm run build. The changelog and version check is removed. This replaces (ci) Require typed pull request titles and the template's sections #30 and (ci) Check that pull requests type-check and build #32.

Testing

  • npm run build passes, and the built app contains this commit's hash. With WORKERS_CI_COMMIT_SHA=abcdef0123456789 the build uses abcdef0.
  • npm test: 1080 passed, including new tests for the title and description rules, the release commit lookup and the changelog.
  • npx playwright test tests/e2e/whats-new.spec.ts tests/e2e/documentation.spec.ts: 11 passed. Checked the popover and the What's new page in screenshots, on desktop and at phone width.
  • Not yet verified: whether Cloudflare's checkout includes git history. This PR's preview build should show a hash for "Commit versions"; if it shows "Unreleased", the lookup needs another source.

- Show the short commit hash the app was built from as its version, and drop semver
  from package.json and the changelog
- Name the commit each release shipped in; the build finds it for new entries
- Start the release list at Warp, the first release with a clean ship commit
- Replace the changelog and version checks with title, description and build checks
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
🔵 In progress
View logs
kitbasher 0902dfc Nov 18 2026, 06:27 AM

@nimerix
nimerix merged commit a6cd0d8 into main Nov 18, 2026
2 of 3 checks passed
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