-
Notifications
You must be signed in to change notification settings - Fork 30
Release #1268
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
base: master
Are you sure you want to change the base?
Release #1268
Changes from all commits
f95af98
e489b4a
fb16a74
13b7677
5618340
5101ede
184ae3e
57a71e7
5e9cea6
1d599d3
5da3eeb
e897a39
877ac5a
03eeef7
cec8e3a
91610bd
d693f16
94f9316
71156c2
218e07e
9f4d52e
a6a9328
1173551
f70d446
230e049
10f4d39
1c05a88
e61e5dd
34f994f
50da22d
d253049
da64108
bc14d4b
2e82b0f
19a87cf
9707d76
1b131a0
e8c8e7f
88ddd1d
8c4a112
fae76cc
c5e66d5
f3f2613
9d23ec4
0a18fc5
e4bab5d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,45 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: Translations Diff | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pull_request_review: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pull_request: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| types: [opened, edited, synchronize, ready_for_review] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| branches: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - development | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - master | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| translation: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Checkout Base Branch | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| uses: actions/checkout@master | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ref: ${{ github.base_ref }} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| path: visualizer-base | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Setup node 22 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| uses: actions/setup-node@v6 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| node-version: 22.x | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - name: Checkout PR Branch (Head) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| uses: actions/checkout@master | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+16
to
+25
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| uses: actions/checkout@master | |
| with: | |
| ref: ${{ github.base_ref }} | |
| path: visualizer-base | |
| - name: Setup node 22 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22.x | |
| - name: Checkout PR Branch (Head) | |
| uses: actions/checkout@master | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.base_ref }} | |
| path: visualizer-base | |
| - name: Setup node 22 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| - name: Checkout PR Branch (Head) | |
| uses: actions/checkout@v4 |
Copilot
AI
Mar 27, 2026
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.
Using actions/checkout@master is not recommended (unpinned moving ref) and can break builds or introduce supply-chain risk. Pin these to stable tagged releases (e.g. actions/checkout@v4) and prefer the latest stable actions/setup-node major version that exists in your environment (pinning to a specific major/tag rather than a floating branch).
| uses: actions/checkout@master | |
| with: | |
| ref: ${{ github.base_ref }} | |
| path: visualizer-base | |
| - name: Setup node 22 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22.x | |
| - name: Checkout PR Branch (Head) | |
| uses: actions/checkout@master | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.base_ref }} | |
| path: visualizer-base | |
| - name: Setup node 22 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| - name: Checkout PR Branch (Head) | |
| uses: actions/checkout@v4 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| { | ||
| "core": "WordPress/WordPress#6.5.0", | ||
| "core": null, | ||
| "phpVersion": "7.4", | ||
| "plugins": ["."], | ||
| "themes": [], | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Script to generate POT file via Docker | ||
| # Usage: ./bin/make-pot.sh [plugin-path] [destination-path] | ||
|
|
||
| # Set defaults | ||
| PLUGIN_PATH="${1:-.}" | ||
| DESTINATION="${2:-.}" | ||
|
|
||
| # Resolve absolute paths | ||
| PLUGIN_PATH="$(cd "$PLUGIN_PATH" 2>/dev/null && pwd)" || { | ||
| echo "Error: Plugin path '$1' does not exist" | ||
| exit 1 | ||
| } | ||
|
|
||
| DESTINATION="$(cd "$(dirname "$DESTINATION")" 2>/dev/null && pwd)/$(basename "$DESTINATION")" || { | ||
| echo "Error: Unable to resolve destination path" | ||
| exit 1 | ||
| } | ||
|
|
||
| # Extract destination filename and directory | ||
| DEST_DIR="$(dirname "$DESTINATION")" | ||
| DEST_FILE="$(basename "$DESTINATION")" | ||
|
|
||
| # Ensure destination directory exists | ||
| mkdir -p "$DEST_DIR" | ||
|
|
||
| echo "Generating POT file..." | ||
| echo "Plugin Path: $PLUGIN_PATH" | ||
| echo "Destination: $DESTINATION" | ||
| echo "" | ||
|
|
||
| # Run Docker container with wp-cli to generate POT | ||
| docker run --user root --rm \ | ||
| --volume "$PLUGIN_PATH:/var/www/html/plugin" \ | ||
| wordpress:cli \ | ||
| bash -c 'php -d memory_limit=512M "$(which wp)" --version --allow-root && wp i18n make-pot plugin ./plugin/languages/'"$DEST_FILE"' --include=admin,includes,libs,assets,views --allow-root --domain=anti-spam' | ||
|
|
||
| # Check if the file was created inside the container | ||
| if [ $? -eq 0 ]; then | ||
| echo "" | ||
| echo "✓ POT file successfully generated at: $DESTINATION" | ||
| else | ||
| echo "" | ||
| echo "✗ Error generating POT file" | ||
| exit 1 | ||
| fi |
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.
Using
actions/checkout@masteris not recommended (unpinned moving ref) and can break builds or introduce supply-chain risk. Pin these to stable tagged releases (e.g.actions/checkout@v4) and prefer the latest stableactions/setup-nodemajor version that exists in your environment (pinning to a specific major/tag rather than a floating branch).