Revert "Merge pull request #3476 from github/henrymercer/retry-auth-errors"

This reverts commit 9658e23e5b, reversing
changes made to 2d6b98c7cf.
This commit is contained in:
Michael B. Gale
2026-02-15 15:39:04 +00:00
parent ef618feace
commit ea1a400e13
9 changed files with 23 additions and 127 deletions
+1 -12
View File
@@ -103247,10 +103247,6 @@ function isSelfHostedRunner() {
function isDynamicWorkflow() {
return getWorkflowEventName() === "dynamic";
}
var CCR_KEY_PREFIX = "dynamic/copilot-pull-request-reviewer";
function isCCR() {
return process.env["CODEQL_ACTION_ANALYSIS_KEY" /* ANALYSIS_KEY */]?.startsWith(CCR_KEY_PREFIX) || false;
}
function prettyPrintInvocation(cmd, args) {
return [cmd, ...args].map((x) => x.includes(" ") ? `'${x}'` : x).join(" ");
}
@@ -104250,14 +104246,7 @@ var GitHubFeatureFlags = class {
async loadApiResponse() {
if (!supportsFeatureFlags(this.gitHubVersion.type)) {
this.logger.debug(
"Not running against github.com. Using default values for all features."
);
this.hasAccessedRemoteFeatureFlags = false;
return {};
}
if (isCCR()) {
this.logger.debug(
"Feature flags are not supported in Copilot Code Review. Using default values for all features."
"Not running against github.com. Disabling all toggleable features."
);
this.hasAccessedRemoteFeatureFlags = false;
return {};