Skip to content

feat: run adapters as programs through the adapter protocol - #1056

Merged
jimthedev merged 2 commits into
masterfrom
feat/adapter-protocol
Dec 5, 2026
Merged

jimthedev merged 2 commits into
masterfrom
feat/adapter-protocol

Conversation

@jimthedev

Copy link
Copy Markdown
Member
  • Adapters can declare "commitizenAdapter": { "protocol": [1], "bin": "..." } in package.json. commitizen runs the bin with the same Node.js and gets the commit message back through CZ_MESSAGE_FILE. Adapters without the field load with require() as before.
  • configLoader now comes from @commitizen/config, so adapters can read their config without depending on commitizen. require('commitizen').configLoader works as before.
  • Ctrl-C handling listens on stdin only when it is a terminal, so a protocol adapter gets the input.
  • README: "Writing an adapter" and "Security: risks and how to reduce them" sections; npx examples use npx --no -- cz so npx never downloads an unrelated package named cz. Adds SECURITY.md.
  • Renovate: no inquirer major updates, since adapters rely on inquirer 8.
  • Example protocol adapter in examples/protocol-adapter.

- Adapters can declare "commitizenAdapter": { "protocol": [1], "bin": "..." }
  in package.json. commitizen runs the bin with the same Node.js and gets the
  commit message back through CZ_MESSAGE_FILE. Adapters without the field load
  with require() as before.
- configLoader now comes from @commitizen/config, so adapters can read their
  config without depending on commitizen. require('commitizen').configLoader
  works as before.
- Ctrl-C handling listens on stdin only when it is a terminal, so a protocol
  adapter gets the input.
- README: "Writing an adapter" and "Security: risks and how to reduce them"
  sections; npx examples use `npx --no -- cz` so npx never downloads an
  unrelated package named cz. Adds SECURITY.md.
- Renovate: no inquirer major updates, since adapters rely on inquirer 8.
- Example protocol adapter in examples/protocol-adapter.
@jimthedev
jimthedev merged commit f737bce into master Dec 5, 2026
18 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