MCPcopy
hub / github.com/peter-evans/create-pull-request / configExists

Method configExists

src/git-command-manager.ts:109–126  ·  view source on GitHub ↗
(
    configKey: string,
    configValue = '.',
    globalConfig?: boolean
  )

Source from the content-addressed store, hash-verified

107 }
108
109 async configExists(
110 configKey: string,
111 configValue = '.',
112 globalConfig?: boolean
113 ): Promise<boolean> {
114 const output = await this.exec(
115 [
116 'config',
117 globalConfig ? '--global' : '--local',
118 '--name-only',
119 '--get-regexp',
120 configKey,
121 configValue
122 ],
123 {allowAllExitCodes: true}
124 )
125 return output.exitCode === 0
126 }
127
128 async fetch(
129 refSpec: string[],

Callers 3

addSafeDirectoryMethod · 0.80
getAndUnsetMethod · 0.80

Calls 1

execMethod · 0.95

Tested by

no test coverage detected