mirror of
https://github.com/dorny/test-reporter.git
synced 2026-05-06 10:37:36 +02:00
chore: rebuild dist for Dependabot update
This commit is contained in:
parent
ecf6e5c4c6
commit
fdce2624c0
1 changed files with 19 additions and 0 deletions
19
dist/index.js
generated
vendored
19
dist/index.js
generated
vendored
|
|
@ -51648,6 +51648,19 @@ function getProxyFetch(destinationUrl) {
|
||||||
function getApiBaseUrl() {
|
function getApiBaseUrl() {
|
||||||
return process.env['GITHUB_API_URL'] || 'https://api.github.com';
|
return process.env['GITHUB_API_URL'] || 'https://api.github.com';
|
||||||
}
|
}
|
||||||
|
function getUserAgentWithOrchestrationId(baseUserAgent) {
|
||||||
|
var _a;
|
||||||
|
const orchId = (_a = process.env['ACTIONS_ORCHESTRATION_ID']) === null || _a === void 0 ? void 0 : _a.trim();
|
||||||
|
if (orchId) {
|
||||||
|
const sanitizedId = orchId.replace(/[^a-z0-9_.-]/gi, '_');
|
||||||
|
const tag = `actions_orchestration_id/${sanitizedId}`;
|
||||||
|
if (baseUserAgent === null || baseUserAgent === void 0 ? void 0 : baseUserAgent.includes(tag))
|
||||||
|
return baseUserAgent;
|
||||||
|
const ua = baseUserAgent ? `${baseUserAgent} ` : '';
|
||||||
|
return `${ua}${tag}`;
|
||||||
|
}
|
||||||
|
return baseUserAgent;
|
||||||
|
}
|
||||||
//# sourceMappingURL=utils.js.map
|
//# sourceMappingURL=utils.js.map
|
||||||
;// CONCATENATED MODULE: ./node_modules/universal-user-agent/index.js
|
;// CONCATENATED MODULE: ./node_modules/universal-user-agent/index.js
|
||||||
function getUserAgent() {
|
function getUserAgent() {
|
||||||
|
|
@ -55759,6 +55772,7 @@ const defaults = {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const GitHub = Octokit.plugin(restEndpointMethods, paginateRest).defaults(defaults);
|
const GitHub = Octokit.plugin(restEndpointMethods, paginateRest).defaults(defaults);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convience function to correctly format Octokit Options to pass into the constructor.
|
* Convience function to correctly format Octokit Options to pass into the constructor.
|
||||||
*
|
*
|
||||||
|
|
@ -55772,6 +55786,11 @@ function getOctokitOptions(token, options) {
|
||||||
if (auth) {
|
if (auth) {
|
||||||
opts.auth = auth;
|
opts.auth = auth;
|
||||||
}
|
}
|
||||||
|
// Orchestration ID
|
||||||
|
const userAgent = getUserAgentWithOrchestrationId(opts.userAgent);
|
||||||
|
if (userAgent) {
|
||||||
|
opts.userAgent = userAgent;
|
||||||
|
}
|
||||||
return opts;
|
return opts;
|
||||||
}
|
}
|
||||||
//# sourceMappingURL=utils.js.map
|
//# sourceMappingURL=utils.js.map
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue