From 1ce7a69bbced80f55c398329f55c170e9dc28288 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 7 Aug 2021 18:31:26 +0200 Subject: [PATCH] Governance: Automatic Merging of PRs for User Profiles changes. Bug Fixed.3 --- Client/httpInterface.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index 2a92f8c29..c156dcf06 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -1361,6 +1361,12 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE Validation #2: File Name must be the same to the Github Username of the PR owner. */ let fileContentUrl = pullRequestFile.raw_url + + if (fileContentUrl.indexOf('Governance/Plugins/User-Profiles') < 0) { + console.log('[INFO] httpInterface -> Gov -> mergeGithubPullRequests -> Validation #2 Failed -> Pull Request "' + pullRequest.title + '" not merged because the file modified at the Pull Request it not a User Profile file. -> fileContentUrl = ' + fileContentUrl) + continue + } + let splittedURL = fileContentUrl.split('/') let fileName = splittedURL[splittedURL.length - 1] let splittedFileName = fileName.split('.')