Skip to content

ci: check commit and PR titles with ref0-workspace - #2

Merged
mihar-22 merged 1 commit into
mainfrom
q1116/commit-format
Nov 29, 2026
Merged

mihar-22 merged 1 commit into
mainfrom
q1116/commit-format

Conversation

@mihar-22

@mihar-22 mihar-22 commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Q1116 step 3, for ref-0/plugins: main's subjects broke the commit format again after the history rewrite (ea7c85d ref0 0.102.0, aec92ac), because nothing checked them here.

What changes

  • Q1129's tooling is back. ref0's release step clears every path but .git and README.md before it copies the plugin in, so the ref0 0.102.0 push (ea7c85d) deleted what ci: run the commit and push checks through @ref0/workspace 0.8.0's hooks #1 added: package.json, the lockfile, pnpm-workspace.yaml, vite.config.ts, .gitignore, .vite-hooks/pre-push and commands.md. This restores them byte for byte from aec92ac.
  • .vite-hooks/commit-msg runs ref0-workspace commit-message "$1", as git wires its own. vp config, from the root prepare script, installs it.
  • .github/workflows/title.yml, the repo's first workflow, runs ref0-workspace commit-message --title on the pull request's title, on opened, edited, synchronize and reopened. It checks out only package.json, which names the scopes and pins @ref0/workspace, then runs that one package from npm on ubuntu-24.04. No install and no repo code.
  • .agents/repo/commits.md is new. It holds the format, the scopes (ref0, antigravity) and a table row for each place the format is checked, ref0's release among them.

Not in this PR, and it needs ref-0/ref0

  • The release subject: ref-0/ref0's .github/workflows/release.yml (the "Push the marketplace" step) writes ref0 $VERSION. It should write chore(ref0): release $VERSION. This seat may not touch ref-0/ref0.
  • What the release deletes: the same step runs find . -mindepth 1 -maxdepth 1 ! -name .git ! -name README.md -exec rm -rf. Until it also keeps .agents, .github, .vite-hooks, .gitignore, package.json, pnpm-lock.yaml, pnpm-workspace.yaml and vite.config.ts, the next release deletes this PR's files again.

The merge settings don't change here. The coordinator decides them separately.

Verification

At b63809b, in a fresh clone:

  • The repo has no pre-push set (commands.md: none, since ref0 writes its files). vp check on the changed workflow and docs: format passes, and none of them is a file lint reads.
  • Hook: a prose subject was refused with exit 1, and chore(ref0): release 0.103.0 passed.
  • Title step: run by hand with npm exec @ref0/workspace@0.8.0. This PR's title exits 0, and ref0 0.102.0 exits 1.

No review: restored tooling, a hook, a workflow and docs. The repo names no risky systems.

🤖 Generated with Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Q1116 step 3: main's subjects broke the format again after the history rewrite. ref0's release
0.102.0 (ea7c85d) also deleted Q1129's hooks, since it clears every path but README.md before it
copies the plugin in. This puts back aec92ac's tooling as it was, and adds a commit-msg hook that
runs `ref0-workspace commit-message` and `.github/workflows/title.yml`, the repo's first workflow,
which runs it with `--title` on each pull request's title. commits.md says the format, the scopes
and where each is checked, and that ref0's release writes its own subject.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mihar-22
mihar-22 merged commit 0c88bb8 into main Nov 29, 2026
2 of 3 checks passed
mihar-22 added a commit that referenced this pull request Nov 29, 2026
ci: check commit and PR titles with ref0-workspace
@mihar-22
mihar-22 deleted the q1116/commit-format branch November 29, 2026 01:08
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