Skip to content

Conversation

@Nevoss
Copy link
Member

@Nevoss Nevoss commented Mar 20, 2025

No description provided.

@Nevoss Nevoss requested a review from Copilot March 20, 2025 09:57
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds functionality to enable SVG uploads by introducing a new input parameter and updating WP options accordingly.

  • Added a new boolean input "enable-svg-upload" in action metadata.
  • Updated main.ts to incorporate the new WP option setting logic.
  • Modified the workflow file to include the new input.

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

File Description
actions/setup-elementor-env/main.ts Updated input parsing and added logic for setting WP options based on the new flag.
.github/workflows/test-actions.yml Included the new "enable-svg-upload" input in workflow configuration.
actions/setup-elementor-env/action.yml Defined the new input "enable-svg-upload" with its default value and description.
Files not reviewed (1)
  • stubs/elementor-templates/test.json: Language not supported

enable-svg-upload:
required: false
description: Whether to enable SVG and JSON uploads or not
default: 'false'
Copy link

Copilot AI Mar 20, 2025

Choose a reason for hiding this comment

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

The default value is defined as a string while the code uses z.boolean() for parsing; this may lead to unexpected type conversion issues.

Suggested change
default: 'false'
default: false

Copilot uses AI. Check for mistakes.
@Nevoss Nevoss merged commit 32e2d02 into elementor:main Mar 20, 2025
8 checks passed
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.

2 participants