diff --git a/dist/index.js b/dist/index.js index 0a14f22d..f33c004e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -194,7 +194,6 @@ const input = __importStar(__nccwpck_require__(3611)); function run() { return __awaiter(this, void 0, void 0, function* () { try { - core.info(`test logs`); core.info(`CLA Assistant GitHub Action bot has started the process`); /* * using a `string` true or false purposely as github action input cannot have a boolean value @@ -932,13 +931,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) { }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setupClaCheck = void 0; +const core = __importStar(__nccwpck_require__(2186)); +const github_1 = __nccwpck_require__(5438); const checkAllowList_1 = __nccwpck_require__(3661); const graphql_1 = __importDefault(__nccwpck_require__(5157)); -const pullRequestComment_1 = __importDefault(__nccwpck_require__(3326)); -const github_1 = __nccwpck_require__(5438); const persistence_1 = __nccwpck_require__(5802); +const pullRequestComment_1 = __importDefault(__nccwpck_require__(3326)); const pullRerunRunner_1 = __nccwpck_require__(4766); -const core = __importStar(__nccwpck_require__(2186)); function setupClaCheck() { return __awaiter(this, void 0, void 0, function* () { let committerMap = getInitialCommittersMap(); @@ -980,6 +979,7 @@ function getCLAFileContentandSHA(committers, committerMap) { return createClaFileAndPRComment(committers, committerMap); } else { + core.info(`error status: ${error.status}`); throw new Error(`Could not retrieve repository contents. Status: ${error.status || 'unknown'}`); } } diff --git a/src/main.ts b/src/main.ts index 75b3dd23..ff0a7953 100644 --- a/src/main.ts +++ b/src/main.ts @@ -7,7 +7,6 @@ import * as input from './shared/getInputs' export async function run() { try { - core.info(`test logs`) core.info(`CLA Assistant GitHub Action bot has started the process`) /* diff --git a/src/setupClaCheck.ts b/src/setupClaCheck.ts index dc47d920..454de57e 100644 --- a/src/setupClaCheck.ts +++ b/src/setupClaCheck.ts @@ -1,20 +1,20 @@ +import * as core from '@actions/core' +import { context } from '@actions/github' import { checkAllowList } from './checkAllowList' import getCommitters from './graphql' -import prCommentSetup from './pullrequest/pullRequestComment' import { ClafileContentAndSha, CommitterMap, CommittersDetails, ReactedCommitterMap } from './interfaces' -import { context } from '@actions/github' import { createFile, getFileContent, updateFile } from './persistence/persistence' +import prCommentSetup from './pullrequest/pullRequestComment' import { reRunLastWorkFlowIfRequired } from './pullRerunRunner' -import * as core from '@actions/core' export async function setupClaCheck() { let committerMap = getInitialCommittersMap() @@ -67,6 +67,7 @@ async function getCLAFileContentandSHA( if (error.status === 404) { return createClaFileAndPRComment(committers, committerMap) } else { + core.info(`error status: ${error.status}`) throw new Error( `Could not retrieve repository contents. Status: ${ error.status || 'unknown'