File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -116,29 +116,25 @@ const commitsMarkdown = commits.split('\n').map(linkifyGitLog).join('\n')
116
116
const changesLine = `https://github.com/oxidecomputer/console/compare/${ commitRange } `
117
117
118
118
const branchName = 'bump-console-' + newCommit . slice ( 0 , 8 )
119
- const prTitle = 'Bump web console' + ( args . message ? ` (${ args . message } )` : '' )
120
119
const prBody = `${ changesLine } \n\n${ commitsMarkdown } `
121
120
122
- // markdown links make the inline preview unreadable, so leave them out
123
- const prBodyPreview = `${ changesLine } \n\n${ commits } `
121
+ console . log ( `\n${ changesLine } \n\n${ commits } \n` )
124
122
125
- console . log ( `
126
- New contents of <omicron>/tools/console_version:
123
+ if ( args . dryRun ) Deno . exit ( )
127
124
128
- ${ newVersionFile }
125
+ const message =
126
+ args . message ||
127
+ ( await $ . prompt ( {
128
+ message : 'Description? (enter to skip)' ,
129
+ noClear : true ,
130
+ } ) )
129
131
130
- Branch: ${ branchName }
131
- PR title: ${ prTitle }
132
+ const prTitle = 'Bump web console' + ( message ? ` (${ message } )` : '' )
132
133
133
- --------
134
- PR body
135
- --------
136
-
137
- ${ prBodyPreview } `)
134
+ console . log ( `\nPR title: ${ prTitle } \n` )
138
135
139
- if ( args . dryRun || ! confirm ( '\nMake Omicron PR with these changes?' ) ) {
140
- Deno . exit ( )
141
- }
136
+ const go = await $ . confirm ( { message : 'Make Omicron PR?' , noClear : true } )
137
+ if ( ! go ) Deno . exit ( )
142
138
143
139
if ( ! $ . commandExistsSync ( 'gh' ) ) throw Error ( GH_MISSING )
144
140
You can’t perform that action at this time.
0 commit comments