(context: { fileCount: number })
| 35 | } |
| 36 | |
| 37 | export function buildDefaultCommitMessage(context: { fileCount: number }) { |
| 38 | if (context.fileCount <= 0) { |
| 39 | return 'Update workspace' |
| 40 | } |
| 41 | |
| 42 | return context.fileCount === 1 ? 'Update 1 file' : `Update ${context.fileCount} files` |
| 43 | } |
| 44 | |
| 45 | export async function prepareCommitMessageContext( |
| 46 | projectId: string, |
no outgoing calls
no test coverage detected