From 165e3fa8d37be6358271e24323e92be185f2907d Mon Sep 17 00:00:00 2001 From: Emilio Villuendas Date: Tue, 28 Apr 2026 20:17:37 +0200 Subject: [PATCH 1/2] feat(packages/sui-mono): add non-interactive mode to sui-mono commit --- packages/sui-mono/bin/sui-mono-commit.js | 27 +++++++++++++++++++++++ packages/sui-mono/src/prompter-manager.js | 23 +++++++++++-------- 2 files changed, 41 insertions(+), 9 deletions(-) diff --git a/packages/sui-mono/bin/sui-mono-commit.js b/packages/sui-mono/bin/sui-mono-commit.js index 983515fc7..e4df0ffda 100644 --- a/packages/sui-mono/bin/sui-mono-commit.js +++ b/packages/sui-mono/bin/sui-mono-commit.js @@ -1,8 +1,24 @@ /* eslint no-console:0 */ const {promisify} = require('util') const exec = promisify(require('child_process').exec) +const {Command} = require('commander') const startMainCommitFlow = require('../src/prompter-manager.js') +const {executeCommit} = startMainCommitFlow + +const program = new Command() +program + .option('--no-interactive', 'Skip interactive prompts, requires --type, --scope, --subject') + .option('-t, --type ', 'Commit type (feat, fix, docs, refactor, perf, test, chore, release)') + .option('-s, --scope ', 'Commit scope (package name or Root)') + .option('-m, --subject ', 'Commit subject (short description)') + .option('-b, --body ', 'Commit body (optional, use | for newlines)') + .option('--breaking ', 'Breaking changes description (optional)') + .option('--footer