From 3a17a1f509d37261cafb5dfcea4f9f0a979b9757 Mon Sep 17 00:00:00 2001 From: Armando Vasquez Date: Wed, 30 Aug 2023 15:54:19 -0500 Subject: [PATCH] remove logging - fix url string --- dist/index.js | 8 +------- index.js | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/dist/index.js b/dist/index.js index e376789ea..b886f38c2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -74845,19 +74845,14 @@ const detectPrNumber = async () => { CYPRESS_PULL_REQUEST_URL } = process.env - console.log(`DETECTING PR NUMBER`) - const [owner, repo] = GITHUB_REPOSITORY.split('/') let prNumber - console.log(`USING TOKEN: `, GITHUB_TOKEN) if (GITHUB_TOKEN) { debug( `Detecting PR number by asking GitHub about run ${GITHUB_RUN_ID}` ) - console.log(`Token detected`) - const client = new Octokit({ auth: GITHUB_TOKEN }) @@ -74882,12 +74877,11 @@ const detectPrNumber = async () => { } if (prNumber) { - console.log(`PR NUMBER DETECTED: ${prNumber}`) if (!CYPRESS_PULL_REQUEST_ID) { core.exportVariable('CYPRESS_PULL_REQUEST_ID', prNumber) } - const url = `${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/pulls/${prNumber}` + const url = `${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/pull/${prNumber}` if (!CYPRESS_PULL_REQUEST_URL) { core.exportVariable('CYPRESS_PULL_REQUEST_URL', url) } diff --git a/index.js b/index.js index dfc004ef7..0e3691129 100644 --- a/index.js +++ b/index.js @@ -449,19 +449,14 @@ const detectPrNumber = async () => { CYPRESS_PULL_REQUEST_URL } = process.env - console.log(`DETECTING PR NUMBER`) - const [owner, repo] = GITHUB_REPOSITORY.split('/') let prNumber - console.log(`USING TOKEN: `, GITHUB_TOKEN) if (GITHUB_TOKEN) { debug( `Detecting PR number by asking GitHub about run ${GITHUB_RUN_ID}` ) - console.log(`Token detected`) - const client = new Octokit({ auth: GITHUB_TOKEN }) @@ -486,12 +481,11 @@ const detectPrNumber = async () => { } if (prNumber) { - console.log(`PR NUMBER DETECTED: ${prNumber}`) if (!CYPRESS_PULL_REQUEST_ID) { core.exportVariable('CYPRESS_PULL_REQUEST_ID', prNumber) } - const url = `${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/pulls/${prNumber}` + const url = `${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/pull/${prNumber}` if (!CYPRESS_PULL_REQUEST_URL) { core.exportVariable('CYPRESS_PULL_REQUEST_URL', url) }