From cd08a54e2423cf5958ace6c465de317668313dc0 Mon Sep 17 00:00:00 2001 From: mauriziovitale Date: Fri, 19 Jul 2024 13:38:54 +0200 Subject: [PATCH] Remove change on core --- .../determine-complexity/determine-pr-complexity.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/actions/determine-complexity/determine-pr-complexity.js b/.github/actions/determine-complexity/determine-pr-complexity.js index ab4e3b3331..5e0ee722b9 100644 --- a/.github/actions/determine-complexity/determine-pr-complexity.js +++ b/.github/actions/determine-complexity/determine-pr-complexity.js @@ -62,13 +62,16 @@ async function getPRDetails(github, core, owner, repo, pull_number) { }; } +let LIMIT_FILE_CHANGED; +let LIMIT_LINES_CHANGED; + module.exports = async ({ core, github, context, fileChangedLimit = 5, linesChangedLimit = 50 }) => { const owner = context.repo.owner; const repo = context.repo.repo; const pull_number = context.payload.pull_request.number; - const LIMIT_FILE_CHANGED = fileChangedLimit; - const LIMIT_LINES_CHANGED = linesChangedLimit; + LIMIT_FILE_CHANGED = fileChangedLimit; + LIMIT_LINES_CHANGED = linesChangedLimit; core.info(`Getting PR details for ${owner}/${repo}#${pull_number}`); core.info(`Limit for files changed: ${fileChangedLimit}`);