refactor(dev-infra): move GitClient to common util (#37318)
Moves GitClient from merge script into common utils for unified method of performing git actions throughout the ng-dev toolset. PR Close #37318
This commit is contained in:
@ -13,17 +13,22 @@ import {error} from './console';
|
||||
import {exec} from './shelljs';
|
||||
import {isTsNodeAvailable} from './ts-node';
|
||||
|
||||
/**
|
||||
* Describes the Github configuration for dev-infra. This configuration is
|
||||
* used for API requests, determining the upstream remote, etc.
|
||||
*/
|
||||
export interface GithubConfig {
|
||||
/** Configuration for Git client interactions. */
|
||||
export interface GitClientConfig {
|
||||
/** Owner name of the repository. */
|
||||
owner: string;
|
||||
/** Name of the repository. */
|
||||
name: string;
|
||||
/** If SSH protocol should be used for git interactions. */
|
||||
useSsh?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Describes the Github configuration for dev-infra. This configuration is
|
||||
* used for API requests, determining the upstream remote, etc.
|
||||
*/
|
||||
export interface GithubConfig extends GitClientConfig {}
|
||||
|
||||
/** The common configuration for ng-dev. */
|
||||
type CommonConfig = {
|
||||
github: GithubConfig
|
||||
|
Reference in New Issue
Block a user