@devflow-one/cli 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -166,9 +166,10 @@ devflow mr create "Title" feat/x --body "desc" --project ABC
166
166
  # pattern is expanded to the newest matching remote branch), or pick one
167
167
  devflow mr create "Title" feat/x --base release/2026.4 --project ABC
168
168
 
169
- # PR type: the project's first configured type by default — it supplies the
170
- # description/title templates and the labels the PR is stamped with. Pass its id
171
- # or its label to pick another; an unrecognized value falls back to that default.
169
+ # PR type: supplies the description/title templates and the labels the PR is
170
+ # stamped with. Omitted or unrecognized, it is auto-selected by matching configured
171
+ # type names against the title's conventional prefix, branch prefix, Jira issue type
172
+ # and title keywords, falling back to the first type. Pass its id or label to pick one.
172
173
  devflow mr create "Title" feat/x --type Bugfix --project ABC
173
174
  devflow mr types --project ABC # configured types: id, label, default flag
174
175
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devflow-one/cli",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Terminal CLI wrapping the local DevFlow gateway so shell scripts can trigger repo actions.",
5
5
  "keywords": [
6
6
  "devflow",
package/src/commands.js CHANGED
@@ -164,7 +164,8 @@ const COMMANDS = {
164
164
  "mr create <title> <headBranch> [--body <text>] [--base <branch>] [--type <idOrLabel>]" +
165
165
  " [--issue KEY] [--project KEY]" +
166
166
  " (--base defaults to the repo's configured base branch, expanding a {year}/{number} pattern;" +
167
- " --type defaults to the project's first configured PR type)",
167
+ " --type is auto-selected by matching PR type names against the title prefix, branch prefix," +
168
+ " Jira issue type and title keywords, falling back to the first configured type)",
168
169
  buildArgs: ([title, headBranch], flags) => {
169
170
  if (!title || !headBranch) {
170
171
  throw new UsageError("mr create requires <title> and <headBranch>.");