We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21c2a6d commit f4ca140Copy full SHA for f4ca140
1 file changed
src/index.js
@@ -126,6 +126,19 @@ module.exports = async args => {
126
});
127
}
128
129
+ const userName = (
130
+ (await runCommand({
131
+ cmd: `git config --get github.user`,
132
+ logOutput: false
133
+ })) ||
134
135
+ cmd: `whoami`
136
137
+ "upgrade"
138
+ )
139
+ .split("\n")
140
+ .shift();
141
+
142
const gitAnswers = await inquirer.prompt([
143
{
144
type: "confirm",
@@ -137,7 +150,7 @@ module.exports = async args => {
150
name: "gitBranchName",
151
message: "Enter a name for your branch:",
152
when: ({ shouldCreateGitBranch }) => shouldCreateGitBranch,
- default: `upgrade-${targetDependency}-${targetVersion}`
153
+ default: `${userName}/${targetDependency}-${targetVersion}`
154
},
155
156
0 commit comments