Skip to content

feat: automatización de publicación de promociones para tryonyou.pro - #25

Merged
LVT-ENG merged 3 commits into
mainfrom
feat-auto-deploy-promotions-11212311599814603122
Sep 12, 2026
Merged

feat: automatización de publicación de promociones para tryonyou.pro#25
LVT-ENG merged 3 commits into
mainfrom
feat-auto-deploy-promotions-11212311599814603122

Conversation

@LVT-ENG

@LVT-ENG LVT-ENG commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Automatización de la publicación de promociones para la plataforma tryonyou.pro. Este pull request introduce un sistema de validación y despliegue para contenido promocional a través de un script en Python y un wrapper en Bash. Asegura que los campos críticos del JSON estén presentes y gestiona el envío al entorno de producción de forma segura mediante la variable de entorno TRYONYOU_API_KEY.


PR created automatically by Jules for task 11212311599814603122 started by @LVT-ENG

- Se agrega script en Python (`scripts/auto_deploy_v2.py`) para validar campos obligatorios (title, description, discount_code, valid_until) en el contenido JSON promocional y desplegarlo en la API de producción.
- Se agrega wrapper en Bash (`scripts/auto_deploy_v2.sh`) con mensajes y control de errores en español.
- Se incluyen pruebas unitarias en `tests/test_auto_deploy_v2.py` utilizando pytest y mock para simular las llamadas a la red.

Co-authored-by: LVT-ENG <214667862+LVT-ENG@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

google-labs-jules Bot and others added 2 commits September 12, 2026 06:00
The initial commit failed CI due to python lint issues:
- `scripts/auto_deploy_v2.py`: unsorted imports
- `tests/test_auto_deploy_v2.py`: unsorted imports and unused import `urllib.error`

This resolves the linting errors using `ruff check --fix`.

Co-authored-by: LVT-ENG <214667862+LVT-ENG@users.noreply.github.com>
The initial fix applied ruff checking, but `pyright` checks (which are part of `rye run lint` in the CI) failed due to missing type annotations in the tests file.

Added type hints to the pytest fixtures and variables, resolved Pyright warnings for unknown parameters and mocked objects, and removed unused imports in `tests/test_auto_deploy_v2.py`.

This resolves the remaining type checking issues that failed the CI lint job.

Co-authored-by: LVT-ENG <214667862+LVT-ENG@users.noreply.github.com>
@LVT-ENG
LVT-ENG marked this pull request as ready for review September 12, 2026 10:50
@LVT-ENG
LVT-ENG merged commit a95a944 into main Sep 12, 2026
10 of 12 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.

1 participant