Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: (scripts/i18n) Check if an existing sync PR exists before creating a new one. #22617

Merged
merged 8 commits into from
Apr 9, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
spelling error
  • Loading branch information
tesseralis committed Mar 28, 2020
commit 24ede7040550232e54b20c145aaf55cd6489dca7
4 changes: 3 additions & 1 deletion scripts/i18n/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ async function syncTranslationRepo(code) {
syncLabel = repository.label
}

// process.exit(0)

// TODO exit early if this fails
// Compare these changes
const baseHash = shell
Expand Down Expand Up @@ -323,7 +325,7 @@ async function syncTranslationRepo(code) {
draft: true,
})

logger.info(`Adding ${syncLabelName} lables to created pull requests...`)
logger.info(`Adding ${syncLabelName} labels to created pull requests...`)
await addLabelToPullRequest(syncPR, syncLabel)
await addLabelToPullRequest(conflictsPR, syncLabel)
}
Expand Down