MCPcopy Index your code
hub / github.com/react/react / getReleaseType

Function getReleaseType

scripts/devtools/prepare-release.js:174–193  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

172}
173
174async function getReleaseType() {
175 const {releaseType} = await inquirer.prompt([
176 {
177 type: 'list',
178 name: 'releaseType',
179 message: 'Which type of release is this?',
180 choices: [
181 {
182 name: 'Minor (new user facing functionality)',
183 value: 'minor',
184 short: 'Minor',
185 },
186 {name: 'Patch (bug fixes only)', value: 'patch', short: 'Patch'},
187 ],
188 default: 'patch',
189 },
190 ]);
191
192 return releaseType;
193}
194
195function printFinalInstructions() {
196 const buildAndTestcriptPath = join(__dirname, 'build-and-test.js');

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected