MCPcopy Create free account
hub / github.com/expo/expo / commitAsync

Method commitAsync

tools/src/Git.ts:366–373  ·  view source on GitHub ↗

* Commits staged changes with given options including commit's title and body.

(options: GitCommitOptions)

Source from the content-addressed store, hash-verified

364 * Commits staged changes with given options including commit's title and body.
365 */
366 async commitAsync(options: GitCommitOptions): Promise<void> {
367 const args = ['commit', '--message', options.title];
368
369 if (options.body) {
370 args.push('--message', options.body);
371 }
372 await this.runAsync(args);
373 }
374
375 /**
376 * Cherry-picks the given commits onto the checked out branch.

Callers 2

Calls 2

runAsyncMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected