fix(dev-infra): update generated ng-dev compiled output (#39474)
Update to the new ng-dev generated script. PR Close #39474
This commit is contained in:
parent
8106a7a11b
commit
d6a765909b
|
@ -502,7 +502,7 @@ var GithubApiRequestError = /** @class */ (function (_super) {
|
|||
var GithubClient = /** @class */ (function (_super) {
|
||||
tslib.__extends(GithubClient, _super);
|
||||
function GithubClient(token) {
|
||||
var _this =
|
||||
var _this =
|
||||
// Pass in authentication token to base Octokit class.
|
||||
_super.call(this, { auth: token }) || this;
|
||||
/** The current user based on checking against the Github API. */
|
||||
|
@ -581,7 +581,7 @@ var GithubGraphqlClient = /** @class */ (function () {
|
|||
var GitCommandError = /** @class */ (function (_super) {
|
||||
tslib.__extends(GitCommandError, _super);
|
||||
function GitCommandError(client, args) {
|
||||
var _this =
|
||||
var _this =
|
||||
// Errors are not guaranteed to be caught. To ensure that we don't
|
||||
// accidentally leak the Github token that might be used in a command,
|
||||
// we sanitize the command that will be part of the error message.
|
||||
|
@ -653,7 +653,7 @@ var GitClient = /** @class */ (function () {
|
|||
// Note that we do not want to print the token if it is contained in the command. It's common
|
||||
// to share errors with others if the tool failed, and we do not want to leak tokens.
|
||||
printFn('Executing: git', this.omitGithubTokenFromMessage(args.join(' ')));
|
||||
var result = child_process.spawnSync('git', args, tslib.__assign(tslib.__assign({ cwd: this._projectRoot, stdio: 'pipe' }, options), {
|
||||
var result = child_process.spawnSync('git', args, tslib.__assign(tslib.__assign({ cwd: this._projectRoot, stdio: 'pipe' }, options), {
|
||||
// Encoding is always `utf8` and not overridable. This ensures that this method
|
||||
// always returns `string` as output instead of buffers.
|
||||
encoding: 'utf8' }));
|
||||
|
@ -760,6 +760,8 @@ var GitClient = /** @class */ (function () {
|
|||
return scopes.split(',').map(function (scope) { return scope.trim(); });
|
||||
});
|
||||
};
|
||||
/** Whether verbose logging of Git actions should be used. */
|
||||
GitClient.LOG_COMMANDS = true;
|
||||
return GitClient;
|
||||
}());
|
||||
|
||||
|
@ -791,7 +793,7 @@ function getCaretakerConfig() {
|
|||
class ReleaseTrain {
|
||||
constructor(
|
||||
/** Name of the branch for this release-train. */
|
||||
branchName,
|
||||
branchName,
|
||||
/** Most recent version for this release train. */
|
||||
version) {
|
||||
this.branchName = branchName;
|
||||
|
@ -1408,6 +1410,8 @@ function checkServiceStatuses(githubToken) {
|
|||
const config = getCaretakerConfig();
|
||||
/** The GitClient for interacting with git and Github. */
|
||||
const git = new GitClient(githubToken, config);
|
||||
// Prevent logging of the git commands being executed during the check.
|
||||
GitClient.LOG_COMMANDS = false;
|
||||
// TODO(josephperrott): Allow these checks to be loaded in parallel.
|
||||
yield printServiceStatuses();
|
||||
yield printGithubTasks(git, config.caretaker);
|
||||
|
@ -3049,7 +3053,7 @@ function validateMergeConfig(config) {
|
|||
var PullRequestFailure = /** @class */ (function () {
|
||||
function PullRequestFailure(
|
||||
/** Human-readable message for the failure */
|
||||
message,
|
||||
message,
|
||||
/** Whether the failure is non-fatal and can be forcibly ignored. */
|
||||
nonFatal) {
|
||||
if (nonFatal === void 0) { nonFatal = false; }
|
||||
|
|
Loading…
Reference in New Issue