MCPcopy
hub / github.com/firecow/gitlab-ci-local / changedFiles

Method changedFiles

src/git-data.ts:86–88  ·  view source on GitHub ↗
(defaultBranch: string, cwd: string)

Source from the content-addressed store, hash-verified

84 }
85
86 static changedFiles (defaultBranch: string, cwd: string) {
87 return Utils.syncSpawn(["git", "diff", "--name-only", defaultBranch], cwd).stdout.split("\n");
88 }
89
90 private async initRemoteData (cwd: string, writeStreams: WriteStreams): Promise<void> {
91 try {

Callers 1

evaluateRuleChangesMethod · 0.80

Calls 1

syncSpawnMethod · 0.80

Tested by

no test coverage detected