(workDir: string, env: NodeJS.ProcessEnv, sha: string)
| 66 | } |
| 67 | |
| 68 | export async function containsCommit(workDir: string, env: NodeJS.ProcessEnv, sha: string): Promise<boolean> { |
| 69 | return (await git(workDir, env, "rev-list", "refs/heads/main")).split("\n").includes(sha); |
| 70 | } |
| 71 | |
| 72 | export function redact(text: string, secrets: string[]): string { |
| 73 | for (const secret of secrets.filter(Boolean)) { |
no test coverage detected