@@ -41197,10 +41197,13 @@ const getSlackLimits = () => ({
4119741197 blocks: 50,
4119841198});
4119941199const getTeamsBytesLimit = () => 27_000;
41200-
41200+ const getGithubApiUrl = () => process.env.GITHUB_API_URL || 'https://api.github.com';
41201+ const getGithubServerUrl = () => process.env.GITHUB_SERVER_URL || 'https://github.com';
4120141202module.exports = {
4120241203 getSlackLimits,
4120341204 getTeamsBytesLimit,
41205+ getGithubApiUrl,
41206+ getGithubServerUrl,
4120441207};
4120541208
4120641209
@@ -41244,6 +41247,7 @@ const github = __nccwpck_require__(5438);
4124441247const { subtractDaysToDate } = __nccwpck_require__(9988);
4124541248const { Telemetry } = __nccwpck_require__(4786);
4124641249const { fetchPullRequestById } = __nccwpck_require__(8001);
41250+ const { getGithubApiUrl } = __nccwpck_require__(1855);
4124741251const {
4124841252 getPulls,
4124941253 buildTable,
@@ -41286,7 +41290,7 @@ const run = async (params) => {
4128641290 const pulls = await getPulls({
4128741291 org,
4128841292 repos,
41289- octokit: github.getOctokit(personalToken),
41293+ octokit: github.getOctokit(personalToken, { baseUrl: getGithubApiUrl() } ),
4129041294 startDate: subtractDaysToDate(new Date(), periodLength),
4129141295 });
4129241296 core.info(`Found ${pulls.length} pull requests to analyze`);
@@ -41339,7 +41343,7 @@ module.exports = async (params) => {
4133941343 core.debug(`Params: ${JSON.stringify(params, null, 2)}`);
4134041344
4134141345 const { githubToken, org, repos } = params;
41342- const octokit = github.getOctokit(githubToken);
41346+ const octokit = github.getOctokit(githubToken, { baseUrl: getGithubApiUrl() } );
4134341347 const isSponsor = await checkSponsorship({ octokit, org, repos });
4134441348 const telemetry = new Telemetry({ core, isSponsor, telemetry: params.telemetry });
4134541349 if (isSponsor) core.info('Thanks for sponsoring this project! 💙');
@@ -41705,8 +41709,9 @@ module.exports = (pullRequest) => {
4170541709
4170641710const { t } = __nccwpck_require__(6830);
4170741711const { buildSources } = __nccwpck_require__(9988);
41712+ const { getGithubServerUrl } = __nccwpck_require__(1855);
4170841713
41709- const buildGithubLink = ({ description, path }) => `[${description}](https://github.com /${path})`;
41714+ const buildGithubLink = ({ description, path }) => `[${description}](${getGithubServerUrl()} /${path})`;
4171041715
4171141716module.exports = ({
4171241717 table,
@@ -42321,14 +42326,15 @@ module.exports = ({
4232142326/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
4232242327
4232342328const { buildSources } = __nccwpck_require__(9988);
42329+ const { getGithubServerUrl } = __nccwpck_require__(1855);
4232442330
4232542331const getPRText = (pullRequest) => {
4232642332 const { url, number } = pullRequest || {};
4232742333 if (!url || !number) return '';
4232842334 return ` (<${url}|#${number}>)`;
4232942335};
4233042336
42331- const buildGithubLink = ({ description, path }) => `<https://github.com /${path}|${description}>`;
42337+ const buildGithubLink = ({ description, path }) => `<${getGithubServerUrl()} /${path}|${description}>`;
4233242338
4233342339module.exports = ({
4233442340 t,
@@ -42656,14 +42662,15 @@ module.exports = ({
4265642662/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
4265742663
4265842664const { buildSources } = __nccwpck_require__(9988);
42665+ const { getGithubServerUrl } = __nccwpck_require__(1855);
4265942666
4266042667const getPRText = (pullRequest) => {
4266142668 const { url, number } = pullRequest || {};
4266242669 if (!url || !number) return '';
4266342670 return ` ([#${number}](${url}))`;
4266442671};
4266542672
42666- const buildGithubLink = ({ description, path }) => `[${description}](https://github.com /${path})`;
42673+ const buildGithubLink = ({ description, path }) => `[${description}](${getGithubServerUrl()} /${path})`;
4266742674
4266842675module.exports = ({
4266942676 t,
@@ -48055,7 +48062,7 @@ module.exports = JSON.parse('{"name":"mixpanel","description":"A simple server-s
4805548062/***/ ((module) => {
4805648063
4805748064"use strict";
48058- module.exports = JSON.parse('{"name":"pull-request-stats","version":"2.14 .0","description":"Github action to print relevant stats about Pull Request reviewers","main":"dist/index.js","type":"commonjs","scripts":{"build":"eslint src && ncc build src/index.js -o dist -a","test":"jest","lint":"eslint ./"},"keywords":[],"author":"Manuel de la Torre","license":"MIT","jest":{"testEnvironment":"node","testMatch":["**/?(*.)+(spec|test).[jt]s?(x)"]},"dependencies":{"@actions/core":"^1.10.1","@actions/github":"^6.0.0","axios":"^1.6.7","humanize-duration":"^3.31.0","i18n-js":"^3.9.2","jsurl":"^0.1.5","lodash.get":"^4.4.2","markdown-table":"^2.0.0","mixpanel":"^0.18.0"},"devDependencies":{"@vercel/ncc":"^0.38.1","eslint":"^8.56.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.29.1","eslint-plugin-jest":"^27.6.3","jest":"^29.7.0"},"funding":"https://github.com/sponsors/manuelmhtr","packageManager":"yarn@4.1.0"}');
48065+ module.exports = JSON.parse('{"name":"pull-request-stats","version":"2.15 .0","description":"Github action to print relevant stats about Pull Request reviewers","main":"dist/index.js","type":"commonjs","scripts":{"build":"eslint src && ncc build src/index.js -o dist -a","test":"jest","lint":"eslint ./"},"keywords":[],"author":"Manuel de la Torre","license":"MIT","jest":{"testEnvironment":"node","testMatch":["**/?(*.)+(spec|test).[jt]s?(x)"]},"dependencies":{"@actions/core":"^1.10.1","@actions/github":"^6.0.0","axios":"^1.6.7","humanize-duration":"^3.31.0","i18n-js":"^3.9.2","jsurl":"^0.1.5","lodash.get":"^4.4.2","markdown-table":"^2.0.0","mixpanel":"^0.18.0"},"devDependencies":{"@vercel/ncc":"^0.38.1","eslint":"^8.56.0","eslint-config-airbnb-base":"^15.0.0","eslint-plugin-import":"^2.29.1","eslint-plugin-jest":"^27.6.3","jest":"^29.7.0"},"funding":"https://github.com/sponsors/manuelmhtr","packageManager":"yarn@4.1.0"}');
4805948066
4806048067/***/ }),
4806148068
0 commit comments