File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32136,6 +32136,19 @@ function getProxyFetch(destinationUrl) {
3213632136function getApiBaseUrl() {
3213732137 return process.env['GITHUB_API_URL'] || 'https://api.github.com';
3213832138}
32139+ function getUserAgentWithOrchestrationId(baseUserAgent) {
32140+ var _a;
32141+ const orchId = (_a = process.env['ACTIONS_ORCHESTRATION_ID']) === null || _a === void 0 ? void 0 : _a.trim();
32142+ if (orchId) {
32143+ const sanitizedId = orchId.replace(/[^a-z0-9_.-]/gi, '_');
32144+ const tag = `actions_orchestration_id/${sanitizedId}`;
32145+ if (baseUserAgent === null || baseUserAgent === void 0 ? void 0 : baseUserAgent.includes(tag))
32146+ return baseUserAgent;
32147+ const ua = baseUserAgent ? `${baseUserAgent} ` : '';
32148+ return `${ua}${tag}`;
32149+ }
32150+ return baseUserAgent;
32151+ }
3213932152//# sourceMappingURL=utils.js.map
3214032153;// CONCATENATED MODULE: ./node_modules/universal-user-agent/index.js
3214132154function getUserAgent() {
@@ -36308,6 +36321,7 @@ const defaults = {
3630836321 }
3630936322};
3631036323const GitHub = Octokit.plugin(restEndpointMethods, paginateRest).defaults(defaults);
36324+
3631136325/**
3631236326 * Convience function to correctly format Octokit Options to pass into the constructor.
3631336327 *
@@ -36321,6 +36335,11 @@ function getOctokitOptions(token, options) {
3632136335 if (auth) {
3632236336 opts.auth = auth;
3632336337 }
36338+ // Orchestration ID
36339+ const userAgent = getUserAgentWithOrchestrationId(opts.userAgent);
36340+ if (userAgent) {
36341+ opts.userAgent = userAgent;
36342+ }
3632436343 return opts;
3632536344}
3632636345//# sourceMappingURL=utils.js.map
You can’t perform that action at this time.
0 commit comments