MCPcopy Create free account
hub / github.com/webdriverio/webdriverio / getPrompt

Function getPrompt

scripts/backport.ts:31–44  ·  view source on GitHub ↗
(pr: { title: string, user: { login: string } | null, html_url: string })

Source from the content-addressed store, hash-verified

29}
30
31function getPrompt (pr: { title: string, user: { login: string } | null, html_url: string }) {
32 return [{
33 name: 'toBackport',
34 type: 'confirm',
35 default: true,
36 message: `You want to backport "${pr.title}" by ${pr.user?.login || 'unknown user'}?\n(See PR ${pr.html_url})`
37 }, {
38 name: 'exit',
39 type: 'confirm',
40 default: false,
41 message: 'Exit process?',
42 when: ({ toBackport }: { toBackport: boolean }) => !toBackport
43 }]
44}
45
46const api = new Octokit({ auth: process.env.GITHUB_AUTH })
47

Callers 1

backport.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…