auto-deploy-esperanto-review-applisted
Install: claude install-skill valasubramanian-kr/wallet-web-developer
# `/auto-deploy-esperanto-review-app` — Automate Esperanto Review App Deployment
## Purpose
Automates the deployment of HPP review versions to Esperanto QA stage environment. When an HPP PR with label 'qa-required' publishes a review version (e.g., "3.0.130-074e20d"), this skill extracts that version and creates/updates an Esperanto PR for QA testing.
**What it does**:
1. Auto-detects current HPP PR (from branch or user argument)
2. Fetches HPP PR details (branch name, title, and labels)
3. Validates PR has 'qa-required' label
4. Extracts review version from PR comments
5. Checks out Esperanto repository
6. Creates/updates branch in Esperanto **using HPP PR's branch name**
7. Updates `package.json` with `yarn add @kroger/hosted-payment-page@VERSION`
8. Commits and pushes changes
9. Creates new Esperanto PR with **"[Payments] " + HPP PR title** OR updates existing PR
10. Adds labels: "Autodeploy Stage Review App", "version-minor"
11. Comments back on HPP PR with Esperanto PR link
**Type**: Standalone coordinator (spawns general-purpose sub-agent)
---
## Usage
### From HPP Repo
```bash
# Provide the HPP PR number as argument
cd <path-to-hosted-payment-page-repo>
/auto-deploy-esperanto-review-app <PR-NUMBER>
# Example:
/auto-deploy-esperanto-review-app 328
```
**Note**: PR number is required. You can find it in the PR URL or by running `git branch --show-current` and checking GitHub.
---
## Prerequisites
**Required**:
- GitHub MCP server configured (for PR operation