MCPcopy Create free account
hub / github.com/angular/dev-infra / constructor

Method constructor

ng-dev/utils/testing/sandbox-testing.ts:31–40  ·  view source on GitHub ↗
(private _github: GithubConfig)

Source from the content-addressed store, hash-verified

29 }
30
31 protected constructor(private _github: GithubConfig) {
32 runGitInTmpDir(['init']);
33 runGitInTmpDir(['config', 'user.email', 'some-angular-caretaker@google.com']);
34 runGitInTmpDir(['config', 'user.name', 'Google Angular Caretaker']);
35
36 // Note: We cannot use `--initial-branch=` as this Git option is rather
37 // new and we do not have a strict requirement on a specific Git version.
38 this.branchOff(this._nextBranchName);
39 this.commit('feat(pkg1): initial commit');
40 }
41
42 /**
43 * Creates a commit with the given message. Optionally, an id can be specified to

Callers

nothing calls this directly

Calls 3

branchOffMethod · 0.95
commitMethod · 0.95
runGitInTmpDirFunction · 0.85

Tested by

no test coverage detected