-
Notifications
You must be signed in to change notification settings - Fork 400
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
Conversation
There was a problem hiding this 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
# 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" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @willdurand!
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.