hsh19900502 1.0.16 → 1.0.17
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/dist/commands/git.js +2 -1
- package/package.json +1 -1
- package/src/commands/git.ts +2 -1
package/dist/commands/git.js
CHANGED
|
@@ -46,7 +46,8 @@ export const createMR = async () => {
|
|
|
46
46
|
}
|
|
47
47
|
];
|
|
48
48
|
const answers = await inquirer.prompt(question);
|
|
49
|
-
|
|
49
|
+
const fullTitle = defaultTitle ? `${defaultTitle} ${answers.title}` : answers.title;
|
|
50
|
+
await $ `glab mr create --title="${fullTitle}" --remove-source-branch --squash-before-merge`;
|
|
50
51
|
console.log(chalk.green('MR created successfully!\n'));
|
|
51
52
|
};
|
|
52
53
|
export const branchout = async (branch) => {
|
package/package.json
CHANGED
package/src/commands/git.ts
CHANGED
|
@@ -54,7 +54,8 @@ export const createMR = async () => {
|
|
|
54
54
|
];
|
|
55
55
|
|
|
56
56
|
const answers = await inquirer.prompt<{ title: string }>(question);
|
|
57
|
-
|
|
57
|
+
const fullTitle = defaultTitle ? `${defaultTitle} ${answers.title}` : answers.title;
|
|
58
|
+
await $`glab mr create --title="${fullTitle}" --remove-source-branch --squash-before-merge`;
|
|
58
59
|
console.log(chalk.green('MR created successfully!\n'));
|
|
59
60
|
}
|
|
60
61
|
|