MCPcopy Index your code
hub / github.com/peter-evans/create-pull-request / getDraftInput

Function getDraftInput

src/main.ts:6–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import * as utils from './utils'
5
6function getDraftInput(): {value: boolean; always: boolean} {
7 if (core.getInput('draft') === 'always-true') {
8 return {value: true, always: true}
9 } else {
10 return {value: core.getBooleanInput('draft'), always: false}
11 }
12}
13
14async function run(): Promise<void> {
15 try {

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected