mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
Change params
This commit is contained in:
@@ -16,16 +16,12 @@
|
||||
*/
|
||||
|
||||
async function getPRDetails(github, core, owner, repo, pull_number) {
|
||||
core.info(`Fetching PR details`);
|
||||
|
||||
const { data: files } = await github.rest.pulls.listFiles({
|
||||
owner,
|
||||
repo,
|
||||
pull_number
|
||||
});
|
||||
|
||||
core.info(`Fetched PR details: ${JSON.stringify(files)}`);
|
||||
|
||||
let filesChanged = files.length;
|
||||
let linesChanged = files.reduce((total, file) => total + file.additions + file.deletions, 0);
|
||||
|
||||
|
Reference in New Issue
Block a user