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

Add script to do the l10n extraction #9375

Merged
merged 4 commits into from
Apr 23, 2020
Merged

Add script to do the l10n extraction #9375

merged 4 commits into from
Apr 23, 2020

Conversation

willdurand
Copy link
Member

Fixes mozilla/addons#13733


The script handles both 'amo' and 'disco' apps. It takes care of ensuring the master branch is up-to-date before creating a specific branch for the extraction and it detects no changes. The push hero should only run the script once and it will create between 0 and 2 branches on GitHub. The script gives the links to these branches (if any) to open the pull requests.

@willdurand willdurand requested a review from eviljeff April 23, 2020 09:08
Copy link
Member

@eviljeff eviljeff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my bash script foo is weak so not sure how much weight you can give my r+wc

bin/run-l10n-extraction Outdated Show resolved Hide resolved
bin/run-l10n-extraction Outdated Show resolved Hide resolved
# Ensure the branch to extract the locales is clean.
if [[ $(git branch --list "$branch") ]]; then
info "Deleting branch '$branch' because it already exists"
git branch -D "$branch"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we delete the remote branch too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, because we need it to open the pull request. That being said, we might want to force push the remote branches in case we didn't delete it previously (github should automatically delete a git branch when the corresponding PR is merged).

Copy link
Contributor

@bobsilverberg bobsilverberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @willdurand!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a script to extract & merge l10n
3 participants