Skip to content

Commit

Permalink
fix: error on cherry push & migrate to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
fwuensche committed Sep 10, 2024
1 parent faaf719 commit c694029
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/commands/push.js → bin/commands/push.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ import { getConfiguration } from '../../src/configuration.js'
import { getFiles } from '../../src/files.js'
import { panic } from '../../src/error.js'

// @ts-expect-error TODO: properly type this
export default function (program) {
program
.command('push')
.option('--api-key <api_key>', 'your cherrypush.com API key')
.option('--quiet', 'reduce output to a minimum')
// @ts-expect-error TODO: properly type this
.action(async (options) => {
const configuration = await getConfiguration()
const initialBranch = await git.branchName()
Expand All @@ -28,7 +30,7 @@ export default function (program) {
console.log('Computing metrics for current commit...')
const occurrences = await findOccurrences({
configuration,
files: await getFiles(),
filePaths: await getFiles(),
codeOwners: new Codeowners(),
quiet: options.quiet,
})
Expand Down

0 comments on commit c694029

Please sign in to comment.