MCPcopy
hub / github.com/desktop/desktop / run

Function run

script/draft-release/draft-pull-request.ts:28–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26})
27
28async function run() {
29 const version = appPackage.version
30 if (version.includes('test')) {
31 console.error('Cannot create a PR for a test version')
32 process.exit(1)
33 }
34
35 console.log(`Creating release Pull Request for ${version}...`)
36 const title = await getPullRequestTitle(version)
37 const body = await getPullRequestBody(version)
38 const response = createPR(title, body, `releases/${version}`)
39 if (response === null) {
40 console.error('Failed to create release Pull Request')
41 process.exit(1)
42 }
43 console.log(`Done: ${response.url}`)
44}
45
46run()

Callers 1

Calls 5

createPRFunction · 0.90
getPullRequestTitleFunction · 0.85
getPullRequestBodyFunction · 0.85
errorMethod · 0.80
logMethod · 0.45

Tested by

no test coverage detected