-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[RNMobile] Add GlotPress project slug parameter to translations pipeline #49558
Conversation
@@ -191,7 +191,7 @@ fi | |||
# Define constants | |||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | |||
GUTENBERG_SOURCE_CODE_DIR="$SCRIPT_DIR/../../.." | |||
WP_CLI="php -d memory_limit=4G $SCRIPT_DIR/wp-cli.phar" | |||
WP_CLI="php -d memory_limit=4G -d error_reporting=E_ALL&~E_DEPRECATED $SCRIPT_DIR/wp-cli.phar" |
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.
I noticed when using PHP 8.2.2 that WP-CLI displays logs about deprecated functions. Since this message doesn't provide helpful information for the purpose of the translation pipeline, I decided to filter them out.
Size Change: 0 B Total Size: 1.34 MB ℹ️ View Unchanged
|
Flaky tests detected in ce58b75. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4599207558
|
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.
Changes look good, tested via wordpress-mobile/gutenberg-mobile#5626
Nice work!
What?
Add the GlotPress project slug parameter to the translation pipeline scripts.
Why?
Previously, the project slug was calculated based on the plugin's name. However, this is not always the case, so this will allow plugins to set their custom project slug if needed.
How?
The parameter has been added to the
i18n-translations-download
script and updated the logic accordingly.Testing Instructions
Follow testing instructions from GB-mobile PR.
Testing Instructions for Keyboard
N/A
Screenshots or screencast
N/A