Skip to content

Commit 9e04524

Browse files
committed
chore: fix mess made by merge
1 parent 6f812a4 commit 9e04524

File tree

3 files changed

+11
-30
lines changed

3 files changed

+11
-30
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,6 @@ import simpleGit, { Response } from 'simple-git'
1212
import YAML from 'js-yaml'
1313
import { getInput, Input, log, outputs, parseBool, setOutput } from './util'
1414

15-
type Input =
16-
| 'add'
17-
| 'author_name'
18-
| 'author_email'
19-
| 'branch'
20-
| 'cwd'
21-
| 'message'
22-
| 'pull_strategy'
23-
| 'push'
24-
| 'remove'
25-
| 'signoff'
26-
| 'tag'
27-
2815
const baseDir = path.join(process.cwd(), getInput('cwd') || '')
2916
const git = simpleGit({ baseDir })
3017
console.log(`Running in ${baseDir}`)
@@ -326,22 +313,6 @@ async function checkInputs() {
326313
// #endregion
327314
}
328315

329-
function getInput(name: Input) {
330-
return getInputCore(name)
331-
}
332-
333-
function parseBool(value: any) {
334-
try {
335-
const parsed = JSON.parse(value)
336-
if (typeof parsed == 'boolean') return parsed
337-
} catch {}
338-
}
339-
340-
function log(err: any | Error, data?: any) {
341-
if (data) console.log(data)
342-
if (err) error(err)
343-
}
344-
345316
async function add({ logWarning = true, ignoreErrors = false } = {}): Promise<
346317
(void | Response<void>)[]
347318
> {

0 commit comments

Comments
 (0)