MCPcopy Create free account
hub / github.com/conventional-changelog/commitlint / isClean

Function isClean

@commitlint/travis-cli/src/cli.ts:75–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73}
74
75async function isClean() {
76 const result = await git(["status", "--porcelain"], {
77 stdio: ["pipe", "pipe", "pipe"],
78 });
79 return !(result.stdout && result.stdout.trim());
80}
81
82async function lint(args: string[], nodeOptions: SpawnOptions = {}, input: string = "") {
83 const result = x(COMMITLINT, args, {

Callers 1

stashFunction · 0.85

Calls 1

gitFunction · 0.85

Tested by

no test coverage detected