@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 +4 -3
- package/package.json +1 -1
- package/src/commands.js +2 -1
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
|
|
170
|
-
#
|
|
171
|
-
#
|
|
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
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
|
|
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>.");
|