@@ -4123,18 +4123,18 @@ var require_webidl = __commonJS({
41234123 webidl.errors.exception = function(message) {
41244124 return new TypeError(`${message.header}: ${message.message}`);
41254125 };
4126- webidl.errors.conversionFailed = function(context3 ) {
4127- const plural = context3 .types.length === 1 ? "" : " one of";
4128- const message = `${context3 .argument} could not be converted to${plural}: ${context3 .types.join(", ")}.`;
4126+ webidl.errors.conversionFailed = function(context4 ) {
4127+ const plural = context4 .types.length === 1 ? "" : " one of";
4128+ const message = `${context4 .argument} could not be converted to${plural}: ${context4 .types.join(", ")}.`;
41294129 return webidl.errors.exception({
4130- header: context3 .prefix,
4130+ header: context4 .prefix,
41314131 message
41324132 });
41334133 };
4134- webidl.errors.invalidArgument = function(context3 ) {
4134+ webidl.errors.invalidArgument = function(context4 ) {
41354135 return webidl.errors.exception({
4136- header: context3 .prefix,
4137- message: `"${context3 .value}" is an invalid ${context3 .type}.`
4136+ header: context4 .prefix,
4137+ message: `"${context4 .value}" is an invalid ${context4 .type}.`
41384138 });
41394139 };
41404140 webidl.brandCheck = function(V, I, opts = void 0) {
@@ -9466,15 +9466,15 @@ var require_api_request = __commonJS({
94669466 }
94679467 addSignal(this, signal);
94689468 }
9469- onConnect(abort, context3 ) {
9469+ onConnect(abort, context4 ) {
94709470 if (!this.callback) {
94719471 throw new RequestAbortedError();
94729472 }
94739473 this.abort = abort;
9474- this.context = context3 ;
9474+ this.context = context4 ;
94759475 }
94769476 onHeaders(statusCode, rawHeaders, resume, statusMessage) {
9477- const { callback, opaque, abort, context: context3 , responseHeaders, highWaterMark } = this;
9477+ const { callback, opaque, abort, context: context4 , responseHeaders, highWaterMark } = this;
94789478 const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
94799479 if (statusCode < 200) {
94809480 if (this.onInfo) {
@@ -9501,7 +9501,7 @@ var require_api_request = __commonJS({
95019501 trailers: this.trailers,
95029502 opaque,
95039503 body,
9504- context: context3
9504+ context: context4
95059505 });
95069506 }
95079507 }
@@ -9621,15 +9621,15 @@ var require_api_stream = __commonJS({
96219621 }
96229622 addSignal(this, signal);
96239623 }
9624- onConnect(abort, context3 ) {
9624+ onConnect(abort, context4 ) {
96259625 if (!this.callback) {
96269626 throw new RequestAbortedError();
96279627 }
96289628 this.abort = abort;
9629- this.context = context3 ;
9629+ this.context = context4 ;
96309630 }
96319631 onHeaders(statusCode, rawHeaders, resume, statusMessage) {
9632- const { factory, opaque, context: context3 , callback, responseHeaders } = this;
9632+ const { factory, opaque, context: context4 , callback, responseHeaders } = this;
96339633 const headers = responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
96349634 if (statusCode < 200) {
96359635 if (this.onInfo) {
@@ -9657,7 +9657,7 @@ var require_api_stream = __commonJS({
96579657 statusCode,
96589658 headers,
96599659 opaque,
9660- context: context3
9660+ context: context4
96619661 });
96629662 if (!res || typeof res.write !== "function" || typeof res.end !== "function" || typeof res.on !== "function") {
96639663 throw new InvalidReturnValueError("expected Writable");
@@ -9849,17 +9849,17 @@ var require_api_pipeline = __commonJS({
98499849 this.res = null;
98509850 addSignal(this, signal);
98519851 }
9852- onConnect(abort, context3 ) {
9852+ onConnect(abort, context4 ) {
98539853 const { ret, res } = this;
98549854 assert(!res, "pipeline cannot be retried");
98559855 if (ret.destroyed) {
98569856 throw new RequestAbortedError();
98579857 }
98589858 this.abort = abort;
9859- this.context = context3 ;
9859+ this.context = context4 ;
98609860 }
98619861 onHeaders(statusCode, rawHeaders, resume) {
9862- const { opaque, handler, context: context3 } = this;
9862+ const { opaque, handler, context: context4 } = this;
98639863 if (statusCode < 200) {
98649864 if (this.onInfo) {
98659865 const headers = this.responseHeaders === "raw" ? util.parseRawHeaders(rawHeaders) : util.parseHeaders(rawHeaders);
@@ -9877,7 +9877,7 @@ var require_api_pipeline = __commonJS({
98779877 headers,
98789878 opaque,
98799879 body: this.res,
9880- context: context3
9880+ context: context4
98819881 });
98829882 } catch (err) {
98839883 this.res.on("error", util.nop);
@@ -9961,7 +9961,7 @@ var require_api_upgrade = __commonJS({
99619961 this.context = null;
99629962 addSignal(this, signal);
99639963 }
9964- onConnect(abort, context3 ) {
9964+ onConnect(abort, context4 ) {
99659965 if (!this.callback) {
99669966 throw new RequestAbortedError();
99679967 }
@@ -9972,7 +9972,7 @@ var require_api_upgrade = __commonJS({
99729972 throw new SocketError("bad upgrade", null);
99739973 }
99749974 onUpgrade(statusCode, rawHeaders, socket) {
9975- const { callback, opaque, context: context3 } = this;
9975+ const { callback, opaque, context: context4 } = this;
99769976 assert.strictEqual(statusCode, 101);
99779977 removeSignal(this);
99789978 this.callback = null;
@@ -9981,7 +9981,7 @@ var require_api_upgrade = __commonJS({
99819981 headers,
99829982 socket,
99839983 opaque,
9984- context: context3
9984+ context: context4
99859985 });
99869986 }
99879987 onError(err) {
@@ -10049,18 +10049,18 @@ var require_api_connect = __commonJS({
1004910049 this.abort = null;
1005010050 addSignal(this, signal);
1005110051 }
10052- onConnect(abort, context3 ) {
10052+ onConnect(abort, context4 ) {
1005310053 if (!this.callback) {
1005410054 throw new RequestAbortedError();
1005510055 }
1005610056 this.abort = abort;
10057- this.context = context3 ;
10057+ this.context = context4 ;
1005810058 }
1005910059 onHeaders() {
1006010060 throw new SocketError("bad connect", null);
1006110061 }
1006210062 onUpgrade(statusCode, rawHeaders, socket) {
10063- const { callback, opaque, context: context3 } = this;
10063+ const { callback, opaque, context: context4 } = this;
1006410064 removeSignal(this);
1006510065 this.callback = null;
1006610066 let headers = rawHeaders;
@@ -10072,7 +10072,7 @@ var require_api_connect = __commonJS({
1007210072 headers,
1007310073 socket,
1007410074 opaque,
10075- context: context3
10075+ context: context4
1007610076 });
1007710077 }
1007810078 onError(err) {
@@ -18196,8 +18196,8 @@ var require_dist_node2 = __commonJS({
1819618196 function isKeyOperator2(operator) {
1819718197 return operator === ";" || operator === "&" || operator === "?";
1819818198 }
18199- function getValues2(context3 , operator, key, modifier) {
18200- var value = context3 [key], result = [];
18199+ function getValues2(context4 , operator, key, modifier) {
18200+ var value = context4 [key], result = [];
1820118201 if (isDefined2(value) && value !== "") {
1820218202 if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
1820318203 value = value.toString();
@@ -18261,7 +18261,7 @@ var require_dist_node2 = __commonJS({
1826118261 expand: expand2.bind(null, template)
1826218262 };
1826318263 }
18264- function expand2(template, context3 ) {
18264+ function expand2(template, context4 ) {
1826518265 var operators = ["+", "#", ".", "/", ";", "?", "&"];
1826618266 template = template.replace(
1826718267 /\{([^\{\}]+)\}|([^\{\}]+)/g,
@@ -18275,7 +18275,7 @@ var require_dist_node2 = __commonJS({
1827518275 }
1827618276 expression.split(/,/g).forEach(function(variable) {
1827718277 var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
18278- values.push(getValues2(context3 , operator, tmp[1], tmp[2] || tmp[3]));
18278+ values.push(getValues2(context4 , operator, tmp[1], tmp[2] || tmp[3]));
1827918279 });
1828018280 if (operator && operator !== "+") {
1828118281 var separator = ",";
@@ -23966,7 +23966,7 @@ var require_fast_content_type_parse = __commonJS({
2396623966});
2396723967
2396823968// actions/codeowners-review-analysis/src/run.ts
23969- var github3 = __toESM(require_github());
23969+ var github4 = __toESM(require_github());
2397023970var core7 = __toESM(require_core());
2397123971
2397223972// node_modules/.pnpm/
[email protected] /node_modules/universal-user-agent/index.js
@@ -24218,8 +24218,8 @@ function isDefined(value) {
2421824218function isKeyOperator(operator) {
2421924219 return operator === ";" || operator === "&" || operator === "?";
2422024220}
24221- function getValues(context3 , operator, key, modifier) {
24222- var value = context3 [key], result = [];
24221+ function getValues(context4 , operator, key, modifier) {
24222+ var value = context4 [key], result = [];
2422324223 if (isDefined(value) && value !== "") {
2422424224 if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
2422524225 value = value.toString();
@@ -24283,7 +24283,7 @@ function parseUrl(template) {
2428324283 expand: expand.bind(null, template)
2428424284 };
2428524285}
24286- function expand(template, context3 ) {
24286+ function expand(template, context4 ) {
2428724287 var operators = ["+", "#", ".", "/", ";", "?", "&"];
2428824288 template = template.replace(
2428924289 /\{([^\{\}]+)\}|([^\{\}]+)/g,
@@ -24297,7 +24297,7 @@ function expand(template, context3) {
2429724297 }
2429824298 expression.split(/,/g).forEach(function(variable) {
2429924299 var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
24300- values.push(getValues(context3 , operator, tmp[1], tmp[2] || tmp[3]));
24300+ values.push(getValues(context4 , operator, tmp[1], tmp[2] || tmp[3]));
2430124301 });
2430224302 if (operator && operator !== "+") {
2430324303 var separator = ",";
@@ -25077,17 +25077,17 @@ function getInputs() {
2507725077 return inputs;
2507825078}
2507925079function getInvokeContext() {
25080- const { context: context3 } = github;
25080+ const { context: context4 } = github;
2508125081 const { owner, repo } = github.context.repo;
2508225082 const token = process.env.GITHUB_TOKEN;
2508325083 if (!token) {
2508425084 core.setFailed("GitHub token is not set.");
2508525085 return process.exit(1);
2508625086 }
25087- const { pull_request } = context3 .payload;
25088- if (context3 .eventName !== "pull_request" || !pull_request) {
25087+ const { pull_request } = context4 .payload;
25088+ if (context4 .eventName !== "pull_request" || !pull_request) {
2508925089 core.setFailed(
25090- `This action can only be run on pull requests events. Got ${context3 .eventName}`
25090+ `This action can only be run on pull requests events. Got ${context4 .eventName}`
2509125091 );
2509225092 return process.exit(1);
2509325093 }
@@ -25100,11 +25100,11 @@ function getInvokeContext() {
2510025100 );
2510125101 return process.exit(1);
2510225102 }
25103- core.info(`Event name: ${context3 .eventName}`);
25103+ core.info(`Event name: ${context4 .eventName}`);
2510425104 core.info(
25105- `Owner: ${owner}, Repo: ${repo}, Base: ${base}, Head: ${head}, PR: ${prNumber ?? "N/A"} Actor: ${context3 .actor}`
25105+ `Owner: ${owner}, Repo: ${repo}, Base: ${base}, Head: ${head}, PR: ${prNumber ?? "N/A"} Actor: ${context4 .actor}`
2510625106 );
25107- return { token, owner, repo, base, head, prNumber, actor: context3 .actor };
25107+ return { token, owner, repo, base, head, prNumber, actor: context4 .actor };
2510825108}
2510925109var runInputsConfiguration = {
2511025110 postComment: {
@@ -25652,6 +25652,7 @@ async function getCurrentReviewStatus(octokit, owner, repo, prNumber, pageSize =
2565225652
2565325653// actions/codeowners-review-analysis/src/strings.ts
2565425654var core6 = __toESM(require_core());
25655+ var github3 = __toESM(require_github());
2565525656
2565625657// actions/codeowners-review-analysis/src/review-status.ts
2565725658var core5 = __toESM(require_core());
@@ -25788,6 +25789,15 @@ function formatPendingReviewsMarkdown(entryMap, summaryUrl) {
2578825789 );
2578925790 lines.push("");
2579025791 }
25792+ const {
25793+ runId,
25794+ repo: { owner, repo }
25795+ } = github3.context;
25796+ if (runId && owner && repo) {
25797+ lines.push(
25798+ `Refresh analysis with: \`gh run rerun ${runId} -R ${owner}/${repo}\``
25799+ );
25800+ }
2579125801 return lines.join("\n");
2579225802}
2579325803async function formatAllReviewsSummaryByEntry(entryMap) {
@@ -25875,13 +25885,13 @@ async function formatAllReviewsSummaryByEntry(entryMap) {
2587525885async function run() {
2587625886 try {
2587725887 core7.startGroup("Context");
25878- const context3 = getInvokeContext();
25879- const octokit = github3 .getOctokit(context3 .token);
25880- core7.debug(`Context: ${JSON.stringify(context3 , null, 2)}`);
25888+ const context4 = getInvokeContext();
25889+ const octokit = github4 .getOctokit(context4 .token);
25890+ core7.debug(`Context: ${JSON.stringify(context4 , null, 2)}`);
2588125891 const inputs = getInputs();
2588225892 core7.debug(`Inputs: ${JSON.stringify(inputs)}`);
2588325893 core7.endGroup();
25884- const { token, owner, repo, prNumber } = context3 ;
25894+ const { token, owner, repo, prNumber } = context4 ;
2588525895 core7.startGroup("Get changed files for PR");
2588625896 const prFiles = await getChangedFilesForPR(octokit, owner, repo, prNumber);
2588725897 const filenames = prFiles.map((f) => f.filename);
0 commit comments