Skip to content

Commit

Permalink
Add label to the sync PR even if no conflicts (#23014)
Browse files Browse the repository at this point in the history
  • Loading branch information
tesseralis authored Apr 10, 2020
1 parent 1cc3498 commit eb660bd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/i18n/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit eb660bd

Please sign in to comment.