From a3e2afa21f4f7b2a4b441be6f71b2b1c0795c466 Mon Sep 17 00:00:00 2001 From: Nat Alison <1278991+tesseralis@users.noreply.github.com> Date: Fri, 10 Apr 2020 13:38:30 -0700 Subject: [PATCH] Add label to the sync PR even if no conflicts --- scripts/i18n/sync.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/i18n/sync.js b/scripts/i18n/sync.js index 9d5e673dc28a2..a59690c70fda6 100644 --- a/scripts/i18n/sync.js +++ b/scripts/i18n/sync.js @@ -256,6 +256,7 @@ async function syncTranslationRepo(code) { body: syncPRBody(), maintainerCanModify: true, }) + await addLabelToPullRequest(syncPR, syncLabel) // if we successfully publish the PR, pull again and create a new PR -- shell.exec(`git checkout master`) @@ -332,9 +333,6 @@ async function syncTranslationRepo(code) { maintainerCanModify: true, draft: true, }) - - logger.info(`Adding ${syncLabelName} labels to created pull requests...`) - await addLabelToPullRequest(syncPR, syncLabel) await addLabelToPullRequest(conflictsPR, syncLabel) }